public function EntityDefinitionUpdateManagerInterface::getFieldStorageDefinition

public EntityDefinitionUpdateManagerInterface::getFieldStorageDefinition($name, $entity_type_id)

Returns a field storage definition ready to be manipulated.

When needing to apply updates to existing field storage definitions, this method should always be used to retrieve a storage definition ready to be manipulated.

@todo Make this return a mutable storage definition interface when we have one. See https://www.drupal.org/node/2346329.

Parameters

string $name: The field name.

string $entity_type_id: The entity type identifier.

Return value

\Drupal\Core\Field\FieldStorageDefinitionInterface The field storage definition.

File

core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php, line 153

Class

EntityDefinitionUpdateManagerInterface
Defines an interface for managing entity definition updates.

Namespace

Drupal\Core\Entity

Code

public function getFieldStorageDefinition($name, $entity_type_id);

© 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!EntityDefinitionUpdateManagerInterface.php/function/EntityDefinitionUpdateManagerInterface::getFieldStorageDefinition/8.1.x