W3cubDocs

/Drupal 8

public function ContentEntityStorageBase::onFieldDefinitionCreate

public ContentEntityStorageBase::onFieldDefinitionCreate(FieldDefinitionInterface $field_definition)

Reacts to the creation of a field.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition created.

Overrides FieldDefinitionListenerInterface::onFieldDefinitionCreate

File

core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 159

Class

ContentEntityStorageBase
Base class for content entity storage handlers.

Namespace

Drupal\Core\Entity

Code

public function onFieldDefinitionCreate(FieldDefinitionInterface $field_definition) {
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!ContentEntityStorageBase.php/function/ContentEntityStorageBase::onFieldDefinitionCreate/8.1.x