public SqlContentEntityStorage::onFieldStorageDefinitionCreate(FieldStorageDefinitionInterface $storage_definition)
Reacts to the creation of a field storage definition.
Parameters
\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The definition being created.
Overrides ContentEntityStorageBase::onFieldStorageDefinitionCreate
File
- core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1401
Class
- SqlContentEntityStorage
- A content entity database storage implementation.
Namespace
Drupal\Core\Entity\Sql
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 | public function onFieldStorageDefinitionCreate(FieldStorageDefinitionInterface $storage_definition ) { // If we are adding a field stored in a shared table we need to recompute // the table mapping. // @todo This does not belong here. Remove it once we are able to generate a // fresh table mapping in the schema handler. See if ( $this ->getTableMapping()->allowsSharedTableStorage( $storage_definition )) { $this ->tableMapping = NULL; } $this ->wrapSchemaException( function () use ( $storage_definition ) { $this ->getStorageSchema()->onFieldStorageDefinitionCreate( $storage_definition ); }); } |
Please login to continue.