function CommentAdminOverview::__construct
Same name and namespace in other branches
- 11.x core/modules/comment/src/Form/CommentAdminOverview.php \Drupal\comment\Form\CommentAdminOverview::__construct()
- 10 core/modules/comment/src/Form/CommentAdminOverview.php \Drupal\comment\Form\CommentAdminOverview::__construct()
- 9 core/modules/comment/src/Form/CommentAdminOverview.php \Drupal\comment\Form\CommentAdminOverview::__construct()
- 8.9.x core/modules/comment/src/Form/CommentAdminOverview.php \Drupal\comment\Form\CommentAdminOverview::__construct()
Creates a CommentAdminOverview form.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Core\TempStore\PrivateTempStoreFactory|\Drupal\Core\Extension\ModuleHandlerInterface $temp_store_factory: The tempstore factory.
File
-
core/
modules/ comment/ src/ Form/ CommentAdminOverview.php, line 67
Class
- CommentAdminOverview
- Provides the comments overview administration form.
Namespace
Drupal\comment\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, DateFormatterInterface $date_formatter, PrivateTempStoreFactory|ModuleHandlerInterface $temp_store_factory) {
$this->entityTypeManager = $entity_type_manager;
$this->commentStorage = $entity_type_manager->getStorage('comment');
$this->dateFormatter = $date_formatter;
$this->tempStoreFactory = $temp_store_factory;
if ($temp_store_factory instanceof ModuleHandlerInterface) {
$this->moduleHandler = $temp_store_factory;
$this->tempStoreFactory = func_get_arg(3);
@trigger_error('Calling ' . __METHOD__ . '() with the $module_handler argument is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. See https://www.drupal.org/node/3566911', E_USER_DEPRECATED);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.