You are here

public function SqlContentEntityStorage::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::__construct()

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_backend: The cache backend to be used.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

Overrides ContentEntityStorageBase::__construct

2 calls to SqlContentEntityStorage::__construct()
CommentStorage::__construct in core/modules/comment/src/CommentStorage.php
Constructs a CommentStorage object.
UserStorage::__construct in core/modules/user/src/UserStorage.php
Constructs a new UserStorage object.
2 methods override SqlContentEntityStorage::__construct()
CommentStorage::__construct in core/modules/comment/src/CommentStorage.php
Constructs a CommentStorage object.
UserStorage::__construct in core/modules/user/src/UserStorage.php
Constructs a new UserStorage object.

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 163
Contains \Drupal\Core\Entity\Sql\SqlContentEntityStorage.

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();
}