protected SqlContentEntityStorageSchema::hasSharedTableStructureChange(EntityTypeInterface $entity_type, EntityTypeInterface $original)
Detects whether there is a change in the shared table structure.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The new entity type.
\Drupal\Core\Entity\EntityTypeInterface $original: The origin entity type.
Return value
bool Returns TRUE if either the revisionable or translatable flag changes or a table has been renamed.
File
- core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 145
Class
- SqlContentEntityStorageSchema
- Defines a schema handler that supports revisionable, translatable entities.
Namespace
Drupal\Core\Entity\Sql
Code
1 2 3 4 5 6 | protected function hasSharedTableStructureChange(EntityTypeInterface $entity_type , EntityTypeInterface $original ) { return $entity_type ->isRevisionable() != $original ->isRevisionable() || $entity_type ->isTranslatable() != $original ->isTranslatable() || $this ->hasSharedTableNameChanges( $entity_type , $original ); } |
Please login to continue.