EntityDefinitionUpdateManagerInterface::needsUpdates

public EntityDefinitionUpdateManagerInterface::needsUpdates() Checks if there are any definition updates that need to be applied. Return value bool TRUE if updates are needed. File core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php, line 71 Class EntityDefinitionUpdateManagerInterface Defines an interface for managing entity definition updates. Namespace Drupal\Core\Entity Code public function needsUpdates();

EntityDefinitionUpdateManagerInterface::installFieldStorageDefinition

public EntityDefinitionUpdateManagerInterface::installFieldStorageDefinition($name, $entity_type_id, $provider, FieldStorageDefinitionInterface $storage_definition) Installs a new field storage definition. Parameters string $name: The field storage definition name. string $entity_type_id: The target entity type identifier. string $provider: The name of the definition provider. \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition. File core/lib/Dr

EntityDefinitionUpdateManagerInterface::installEntityType

public EntityDefinitionUpdateManagerInterface::installEntityType(EntityTypeInterface $entity_type) Installs a new entity type definition. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. File core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php, line 117 Class EntityDefinitionUpdateManagerInterface Defines an interface for managing entity definition updates. Namespace Drupal\Core\Entity Code public function installEntityTyp

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_typ

EntityDefinitionUpdateManagerInterface::getEntityType

public EntityDefinitionUpdateManagerInterface::getEntityType($entity_type_id) Returns an entity type definition ready to be manipulated. When needing to apply updates to existing entity type definitions, this method should always be used to retrieve a definition ready to be manipulated. Parameters string $entity_type_id: The entity type identifier. Return value \Drupal\Core\Entity\EntityTypeInterface The entity type definition. File core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInt

EntityDefinitionUpdateManagerInterface::getChangeSummary

public EntityDefinitionUpdateManagerInterface::getChangeSummary() Gets a human readable summary of the detected changes. Return value array An associative array keyed by entity type id. Each entry is an array of human-readable strings, each describing a change. File core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php, line 80 Class EntityDefinitionUpdateManagerInterface Defines an interface for managing entity definition updates. Namespace Drupal\Core\Entity Code pu

EntityDefinitionUpdateManagerInterface::DEFINITION_UPDATED

Indicates that a definition has changes. File core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php, line 56 Class EntityDefinitionUpdateManagerInterface Defines an interface for managing entity definition updates. Namespace Drupal\Core\Entity Code const DEFINITION_UPDATED = 2;

EntityDefinitionUpdateManagerInterface::DEFINITION_DELETED

Indicates that a definition has just been deleted. File core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php, line 63 Class EntityDefinitionUpdateManagerInterface Defines an interface for managing entity definition updates. Namespace Drupal\Core\Entity Code const DEFINITION_DELETED = 3;

EntityDefinitionUpdateManagerInterface::DEFINITION_CREATED

Indicates that a definition has just been created. File core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php, line 49 Class EntityDefinitionUpdateManagerInterface Defines an interface for managing entity definition updates. Namespace Drupal\Core\Entity Code const DEFINITION_CREATED = 1;

EntityDefinitionUpdateManagerInterface::applyUpdates

public EntityDefinitionUpdateManagerInterface::applyUpdates() Applies all the detected valid changes. Use this with care, as it will apply updates for any module, which will lead to unpredictable results. Throws \Drupal\Core\Entity\EntityStorageException This exception is thrown if a change cannot be applied without unacceptable data loss. In such a case, the site administrator needs to apply some other process, such as a custom update function or a migration via the Migrate module. File core/