public function SearchEngineListBuilder::__construct in Simple XML sitemap 8.3
Same name and namespace in other branches
- 4.x modules/simple_sitemap_engines/src/Controller/SearchEngineListBuilder.php \Drupal\simple_sitemap_engines\Controller\SearchEngineListBuilder::__construct()
SearchEngineListBuilder constructor.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Core\State\StateInterface $state: The state service.
Overrides EntityListBuilder::__construct
File
- modules/
simple_sitemap_engines/ src/ Controller/ SearchEngineListBuilder.php, line 43
Class
- SearchEngineListBuilder
- Search engine entity list builder.
Namespace
Drupal\simple_sitemap_engines\ControllerCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, DateFormatterInterface $date_formatter, StateInterface $state) {
parent::__construct($entity_type, $storage);
$this->dateFormatter = $date_formatter;
$this->state = $state;
}