function DependencyFieldItem::calculateDependencies

Same name in other branches
  1. 8.9.x core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php \Drupal\Tests\field\Unit\DependencyFieldItem::calculateDependencies()
  2. 10 core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php \Drupal\Tests\field\Unit\DependencyFieldItem::calculateDependencies()
  3. 11.x core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php \Drupal\Tests\field\Unit\DependencyFieldItem::calculateDependencies()

File

core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php, line 299

Class

DependencyFieldItem
A test class.

Namespace

Drupal\Tests\field\Unit

Code

public static function calculateDependencies(FieldDefinitionInterface $definition) {
    return [
        'module' => [
            'test_module3',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.