CommentAdminOverview::__construct

public CommentAdminOverview::__construct(EntityManagerInterface $entity_manager, CommentStorageInterface $comment_storage, DateFormatterInterface $date_formatter, ModuleHandlerInterface $module_handler)

Creates a CommentAdminOverview form.

Parameters

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

\Drupal\comment\CommentStorageInterface $comment_storage: The comment storage.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

File

core/modules/comment/src/Form/CommentAdminOverview.php, line 60

Class

CommentAdminOverview
Provides the comments overview administration form.

Namespace

Drupal\comment\Form

Code

public function __construct(EntityManagerInterface $entity_manager, CommentStorageInterface $comment_storage, DateFormatterInterface $date_formatter, ModuleHandlerInterface $module_handler) {
  $this->entityManager = $entity_manager;
  $this->commentStorage = $comment_storage;
  $this->dateFormatter = $date_formatter;
  $this->moduleHandler = $module_handler;
}
doc_Drupal
2016-10-29 08:50:30
Comments
Leave a Comment

Please login to continue.