You are here

public function CommentAdminOverview::__construct in Zircon Profile 8

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

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 65
Contains \Drupal\comment\Form\CommentAdminOverview.

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