public SqlContentEntityStorageSchema::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/SqlContentEntityStorageSchema.php, line 126
Class
- SqlContentEntityStorageSchema
- Defines a schema handler that supports revisionable, translatable entities.
Namespace
Drupal\Core\Entity\Sql
Code
1 2 3 4 5 6 | public function requiresEntityStorageSchemaChanges(EntityTypeInterface $entity_type , EntityTypeInterface $original ) { return $this ->hasSharedTableStructureChange( $entity_type , $original ) || // Detect changes in key or index definitions. $this ->getEntitySchemaData( $entity_type , $this ->getEntitySchema( $entity_type , TRUE)) != $this ->loadEntitySchemaData( $original ); } |
Please login to continue.