CommentStorage::__construct

public CommentStorage::__construct(EntityTypeInterface $entity_info, Connection $database, EntityManagerInterface $entity_manager, AccountInterface $current_user, CacheBackendInterface $cache, LanguageManagerInterface $language_manager)

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 47

Class

CommentStorage
Defines the storage handler 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;
}
doc_Drupal
2016-10-29 08:51:01
Comments
Leave a Comment

Please login to continue.