function TestItemWithDependencies::calculateDependencies

Same name in other branches
  1. 9 core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithDependencies.php \Drupal\field_test\Plugin\Field\FieldType\TestItemWithDependencies::calculateDependencies()
  2. 10 core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithDependencies.php \Drupal\field_test\Plugin\Field\FieldType\TestItemWithDependencies::calculateDependencies()
  3. 11.x core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithDependencies.php \Drupal\field_test\Plugin\Field\FieldType\TestItemWithDependencies::calculateDependencies()

Overrides FieldItemBase::calculateDependencies

File

core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithDependencies.php, line 28

Class

TestItemWithDependencies
Defines the 'test_field_with_dependencies' entity field item.

Namespace

Drupal\field_test\Plugin\Field\FieldType

Code

public static function calculateDependencies(FieldDefinitionInterface $field_definition) {
    return [
        'content' => [
            'node:article:uuid',
        ],
    ];
}

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