protected function SqlContentEntityStorageSchema::hasSharedTableNameChanges in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::hasSharedTableNameChanges()
Detects whether any table name got renamed in an entity type update.
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 there have been changes.
1 call to SqlContentEntityStorageSchema::hasSharedTableNameChanges()
- SqlContentEntityStorageSchema::hasSharedTableStructureChange in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorageSchema.php - Detects whether there is a change in the shared table structure.
File
- core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorageSchema.php, line 168 - Contains \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema.
Class
- SqlContentEntityStorageSchema
- Defines a schema handler that supports revisionable, translatable entities.
Namespace
Drupal\Core\Entity\SqlCode
protected function hasSharedTableNameChanges(EntityTypeInterface $entity_type, EntityTypeInterface $original) {
return $entity_type
->getBaseTable() != $original
->getBaseTable() || $entity_type
->getDataTable() != $original
->getDataTable() || $entity_type
->getRevisionTable() != $original
->getRevisionTable() || $entity_type
->getRevisionDataTable() != $original
->getRevisionDataTable();
}