You are here

public function XmlSitemapListBuilder::__construct in XML sitemap 2.x

Same name and namespace in other branches
  1. 8 src/XmlSitemapListBuilder.php \Drupal\xmlsitemap\XmlSitemapListBuilder::__construct()

Constructs a XmlSitemapListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage.

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

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager service.

Overrides EntityListBuilder::__construct

File

src/XmlSitemapListBuilder.php, line 45

Class

XmlSitemapListBuilder
Provides a listing of XmlSitemap.

Namespace

Drupal\xmlsitemap

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ModuleHandlerInterface $module_handler, LanguageManagerInterface $language_manager) {
  parent::__construct($entity_type, $storage);
  $this->moduleHandler = $module_handler;
  $this->languageManager = $language_manager;
}