You are here

public function CommentStorage::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/CommentStorage.php \Drupal\comment\CommentStorage::__construct()

Constructs a CommentStorage object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_info: An array of entity info for the entity type.

\Drupal\Core\Database\Connection $database: The database connection to be used.

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\Core\Cache\CacheBackendInterface $cache: Cache backend instance to use.

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

Overrides SqlContentEntityStorage::__construct

File

core/modules/comment/src/CommentStorage.php, line 52
Contains \Drupal\comment\CommentStorage.

Class

CommentStorage
Defines the controller class for comments.

Namespace

Drupal\comment

Code

public function __construct(EntityTypeInterface $entity_info, Connection $database, EntityManagerInterface $entity_manager, AccountInterface $current_user, CacheBackendInterface $cache, LanguageManagerInterface $language_manager) {
  parent::__construct($entity_info, $database, $entity_manager, $cache, $language_manager);
  $this->currentUser = $current_user;
}