public SqlContentEntityStorage::__construct(EntityTypeInterface $entity_type, Connection $database, EntityManagerInterface $entity_manager, CacheBackendInterface $cache, LanguageManagerInterface $language_manager)
Constructs a SqlContentEntityStorage object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Database\Connection $database: The database connection to be used.
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend to be used.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
Overrides ContentEntityStorageBase::__construct
File
- core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 158
Class
- SqlContentEntityStorage
- A content entity database storage implementation.
Namespace
Drupal\Core\Entity\Sql
Code
public function __construct(EntityTypeInterface $entity_type, Connection $database, EntityManagerInterface $entity_manager, CacheBackendInterface $cache, LanguageManagerInterface $language_manager) { parent::__construct($entity_type, $entity_manager, $cache); $this->database = $database; $this->languageManager = $language_manager; $this->initTableLayout(); }
Please login to continue.