You are here

public function SitemapHelper::__construct in Sitemap 8

SitemapHelper constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

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

File

src/SitemapHelper.php, line 61

Class

SitemapHelper
Defines a helper class for stuff related to views data.

Namespace

Drupal\sitemap

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, EntityRepositoryInterface $entity_repository, ModuleHandlerInterface $module_handler) {
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityRepository = $entity_repository;
  $this->moduleHandler = $module_handler;
}