public static function FieldItemInterface::onDependencyRemoval in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::onDependencyRemoval()
- 10 core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::onDependencyRemoval()
Informs the plugin that a dependency of the field will be deleted.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.
array $dependencies: An array of dependencies that will be deleted keyed by dependency type. Dependency types are, for example, entity, module and theme.
Return value
bool TRUE if the field definition has been changed as a result, FALSE if not.
See also
\Drupal\Core\Config\ConfigEntityInterface::onDependencyRemoval()
1 method overrides FieldItemInterface::onDependencyRemoval()
- FieldItemBase::onDependencyRemoval in core/
lib/ Drupal/ Core/ Field/ FieldItemBase.php - Informs the plugin that a dependency of the field will be deleted.
File
- core/
lib/ Drupal/ Core/ Field/ FieldItemInterface.php, line 463
Class
- FieldItemInterface
- Interface for entity field items.
Namespace
Drupal\Core\FieldCode
public static function onDependencyRemoval(FieldDefinitionInterface $field_definition, array $dependencies);