public function __construct(EntityTypeInterface
$entity_type, Connection
$database, EntityFieldManagerInterface
$entity_field_manager, CacheBackendInterface
$cache, LanguageManagerInterface
$language_manager, MemoryCacheInterface
$memory_cache, EntityTypeBundleInfoInterface
$entity_type_bundle_info, EntityTypeManagerInterface
$entity_type_manager) { parent::
__construct($entity_type,
$entity_field_manager,
$cache,
$memory_cache,
$entity_type_bundle_info);
$this->database =
$database;
$this->languageManager =
$language_manager;
$this->entityTypeManager =
$entity_type_manager;
$this->entityType =
$this->entityTypeManager->
getActiveDefinition($entity_type->
id());
$this->fieldStorageDefinitions =
$this->entityFieldManager->
getActiveFieldStorageDefinitions($entity_type->
id());
$this->
initTableLayout();
} /**
* Initializes table name variables.
*/
protected function initTableLayout() { // Reset table field values to ensure changes in the entity type definition
// are correctly reflected in the table layout.
$this->tableMapping = NULL;