public function EntityReferenceField::calculateDependencies in Synonyms 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Synonyms/Provider/EntityReferenceField.php \Drupal\synonyms\Plugin\Synonyms\Provider\EntityReferenceField::calculateDependencies()
File
- src/
Plugin/ Synonyms/ Provider/ EntityReferenceField.php, line 182
Class
- EntityReferenceField
- Provide synonyms from entity reference field type.
Namespace
Drupal\synonyms\Plugin\Synonyms\ProviderCode
public function calculateDependencies() {
$field = $this->entityFieldManager
->getFieldDefinitions($this
->getPluginDefinition()['controlled_entity_type'], $this
->getPluginDefinition()['controlled_bundle'])[$this
->getPluginDefinition()['field']];
return [
$field
->getConfigDependencyKey() => [
$field
->getConfigDependencyName(),
],
];
}