You are here

class SubEntityDefinitionUpdateManager in Entity Update 8

This is an extention of EntityDefinitionUpdateManager.

Hierarchy

Expanded class hierarchy of SubEntityDefinitionUpdateManager

1 file declares its use of SubEntityDefinitionUpdateManager
entity_update.module in ./entity_update.module
Entity update module (entity_update).

File

src/SubEntityDefinitionUpdateManager.php, line 10

Namespace

Drupal\entity_update
View source
class SubEntityDefinitionUpdateManager extends EntityDefinitionUpdateManager {

  /**
   * The entity manager service.
   *
   * @var \Drupal\Core\Entity\EntityManagerInterface
   */
  public $entityManager;

  /**
   * Gets a list of changes to entity type and field storage definitions.
   *
   * @return array
   *   An associative array keyed by entity type id of change descriptors. Every
   *   entry is an associative array with the following optional keys:
   *   - entity_type: a scalar having only the DEFINITION_UPDATED value.
   *   - field_storage_definitions: an associative array keyed by field name of
   *     scalars having one value among:
   *     - DEFINITION_CREATED
   *     - DEFINITION_UPDATED
   *     - DEFINITION_DELETED
   */
  public function publicGetChangeList() {
    return parent::getChangeList();
  }

  /**
   * Performs a field storage definition update.
   *
   * @param string $op
   *   The operation to perform, possible values are static::DEFINITION_CREATED,
   *   static::DEFINITION_UPDATED or static::DEFINITION_DELETED.
   * @param array|null $storage_definition
   *   The new field storage definition.
   * @param array|null $original_storage_definition
   *   The original field storage definition.
   */
  public function publicDoFieldUpdate($op, $storage_definition = NULL, $original_storage_definition = NULL) {
    return parent::doFieldUpdate($op, $storage_definition, $original_storage_definition);
  }

  /**
   * Performs an entity type definition update.
   *
   * @param string $op
   *   The operation to perform, either static::DEFINITION_CREATED or
   *   static::DEFINITION_UPDATED.
   * @param string $entity_type_id
   *   The entity type ID.
   */
  public function publicDoEntityUpdate($op, $entity_type_id) {
    return parent::doEntityUpdate($op, $entity_type_id);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DeprecatedServicePropertyTrait::__get public function Allows to access deprecated/removed properties.
EntityDefinitionUpdateManager::$deprecatedProperties protected property
EntityDefinitionUpdateManager::$entityFieldManager protected property The entity field manager service.
EntityDefinitionUpdateManager::$entityLastInstalledSchemaRepository protected property The last installed schema repository.
EntityDefinitionUpdateManager::$entityTypeListener protected property The entity type listener service.
EntityDefinitionUpdateManager::$entityTypeManager protected property The entity type manager service.
EntityDefinitionUpdateManager::$fieldStorageDefinitionListener protected property The field storage definition listener service.
EntityDefinitionUpdateManager::applyUpdates public function Applies all the detected valid changes. Overrides EntityDefinitionUpdateManagerInterface::applyUpdates
EntityDefinitionUpdateManager::clearCachedDefinitions protected function Clears necessary caches to apply entity/field definition updates.
EntityDefinitionUpdateManager::getChangeList public function Gets a list of changes to entity type and field storage definitions. Overrides EntityDefinitionUpdateManagerInterface::getChangeList
EntityDefinitionUpdateManager::getChangeSummary public function Gets a human readable summary of the detected changes. Overrides EntityDefinitionUpdateManagerInterface::getChangeSummary
EntityDefinitionUpdateManager::getEntityType public function Returns an entity type definition ready to be manipulated. Overrides EntityDefinitionUpdateManagerInterface::getEntityType
EntityDefinitionUpdateManager::getEntityTypes public function Returns all the entity type definitions, ready to be manipulated. Overrides EntityDefinitionUpdateManagerInterface::getEntityTypes
EntityDefinitionUpdateManager::getFieldStorageDefinition public function Returns a field storage definition ready to be manipulated. Overrides EntityDefinitionUpdateManagerInterface::getFieldStorageDefinition
EntityDefinitionUpdateManager::installEntityType public function Installs a new entity type definition. Overrides EntityDefinitionUpdateManagerInterface::installEntityType
EntityDefinitionUpdateManager::installFieldableEntityType public function Installs a new fieldable entity type definition. Overrides EntityDefinitionUpdateManagerInterface::installFieldableEntityType
EntityDefinitionUpdateManager::installFieldStorageDefinition public function Installs a new field storage definition. Overrides EntityDefinitionUpdateManagerInterface::installFieldStorageDefinition
EntityDefinitionUpdateManager::needsUpdates public function Checks if there are any definition updates that need to be applied. Overrides EntityDefinitionUpdateManagerInterface::needsUpdates
EntityDefinitionUpdateManager::requiresEntityDataMigration protected function Checks if existing data would be lost if the schema changes were applied.
EntityDefinitionUpdateManager::requiresEntityStorageSchemaChanges protected function Checks if the changes to the entity type requires storage schema changes.
EntityDefinitionUpdateManager::requiresFieldStorageSchemaChanges protected function Checks if the changes to the storage definition requires schema changes.
EntityDefinitionUpdateManager::uninstallEntityType public function Uninstalls an entity type definition. Overrides EntityDefinitionUpdateManagerInterface::uninstallEntityType
EntityDefinitionUpdateManager::uninstallFieldStorageDefinition public function Uninstalls a field storage definition. Overrides EntityDefinitionUpdateManagerInterface::uninstallFieldStorageDefinition
EntityDefinitionUpdateManager::updateEntityType public function Applies any change performed to the passed entity type definition. Overrides EntityDefinitionUpdateManagerInterface::updateEntityType
EntityDefinitionUpdateManager::updateFieldableEntityType public function Applies any change performed to a fieldable entity type definition. Overrides EntityDefinitionUpdateManagerInterface::updateFieldableEntityType
EntityDefinitionUpdateManager::updateFieldStorageDefinition public function Applies any change performed to the passed field storage definition. Overrides EntityDefinitionUpdateManagerInterface::updateFieldStorageDefinition
EntityDefinitionUpdateManager::__construct public function Constructs a new EntityDefinitionUpdateManager.
EntityDefinitionUpdateManagerInterface::DEFINITION_CREATED constant Indicates that a definition has just been created.
EntityDefinitionUpdateManagerInterface::DEFINITION_DELETED constant Indicates that a definition has just been deleted.
EntityDefinitionUpdateManagerInterface::DEFINITION_UPDATED constant Indicates that a definition has changes.
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
SubEntityDefinitionUpdateManager::$entityManager public property The entity manager service.
SubEntityDefinitionUpdateManager::publicDoEntityUpdate public function Performs an entity type definition update.
SubEntityDefinitionUpdateManager::publicDoFieldUpdate public function Performs a field storage definition update.
SubEntityDefinitionUpdateManager::publicGetChangeList public function Gets a list of changes to entity type and field storage definitions.