function FieldDefinitionListenerInterface::onFieldDefinitionCreate
Reacts to the creation of a field.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition created.
2 methods override FieldDefinitionListenerInterface::onFieldDefinitionCreate()
- ContentEntityStorageBase::onFieldDefinitionCreate in core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php - Reacts to the creation of a field.
- FieldDefinitionListener::onFieldDefinitionCreate in core/
lib/ Drupal/ Core/ Field/ FieldDefinitionListener.php - Reacts to the creation of a field.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldDefinitionListenerInterface.php, line 16
Class
- FieldDefinitionListenerInterface
- Defines an interface for reacting to field creation, deletion, and updates.
Namespace
Drupal\Core\FieldCode
public function onFieldDefinitionCreate(FieldDefinitionInterface $field_definition);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.