Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/Schema/EntityStorageSchemaInterface.php \Drupal\Core\Entity\Schema\EntityStorageSchemaInterface::requiresEntityStorageSchemaChanges()
  2. 9 core/lib/Drupal/Core/Entity/Schema/EntityStorageSchemaInterface.php \Drupal\Core\Entity\Schema\EntityStorageSchemaInterface::requiresEntityStorageSchemaChanges()

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.

2 methods override EntityStorageSchemaInterface::requiresEntityStorageSchemaChanges()
SqlContentEntityStorage::requiresEntityStorageSchemaChanges in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
Checks if the changes to the entity type requires storage schema changes.
SqlContentEntityStorageSchema::requiresEntityStorageSchemaChanges in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Checks if the changes to the entity type requires storage schema changes.

File

core/lib/Drupal/Core/Entity/Schema/EntityStorageSchemaInterface.php, line 34

Class

EntityStorageSchemaInterface
Defines the interface for entity storage schema handler classes.

Namespace

Drupal\Core\Entity\Schema

Code

public function requiresEntityStorageSchemaChanges(EntityTypeInterface $entity_type, EntityTypeInterface $original);