W3cubDocs

/Drupal 8

public function SqlContentEntityStorage::requiresEntityStorageSchemaChanges

public SqlContentEntityStorage::requiresEntityStorageSchemaChanges(EntityTypeInterface $entity_type, EntityTypeInterface $original)

Checks if the changes to the entity type requires storage schema changes.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The updated entity type definition.

\Drupal\Core\Entity\EntityTypeInterface $original: The original entity type definition.

Return value

bool TRUE if storage schema changes are required, FALSE otherwise.

Overrides EntityStorageSchemaInterface::requiresEntityStorageSchemaChanges

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1326

Class

SqlContentEntityStorage
A content entity database storage implementation.

Namespace

Drupal\Core\Entity\Sql

Code

public function requiresEntityStorageSchemaChanges(EntityTypeInterface $entity_type, EntityTypeInterface $original) {
  return $this->getStorageSchema()->requiresEntityStorageSchemaChanges($entity_type, $original);
}

© 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!Sql!SqlContentEntityStorage.php/function/SqlContentEntityStorage::requiresEntityStorageSchemaChanges/8.1.x