You are here

public function BaseField::calculateDependencies in Synonyms 8

File

src/Plugin/Synonyms/Provider/BaseField.php, line 129

Class

BaseField
Provide synonyms from base fields.

Namespace

Drupal\synonyms\Plugin\Synonyms\Provider

Code

public function calculateDependencies() {
  $field = $this->entityFieldManager
    ->getFieldDefinitions($this
    ->getPluginDefinition()['controlled_entity_type'], $this
    ->getPluginDefinition()['controlled_bundle'])[$this
    ->getPluginDefinition()['field']];
  return [
    $field
      ->getConfigDependencyKey() => [
      $field
        ->getConfigDependencyName(),
    ],
  ];
}