You are here

public function EntityUrlGeneratorBase::__construct in Simple XML sitemap 8.3

Same name and namespace in other branches
  1. 4.x src/Plugin/simple_sitemap/UrlGenerator/EntityUrlGeneratorBase.php \Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\EntityUrlGeneratorBase::__construct()

UrlGeneratorBase constructor.

Parameters

array $configuration:

$plugin_id:

$plugin_definition:

\Drupal\simple_sitemap\Simplesitemap $generator:

\Drupal\Core\Language\LanguageManagerInterface $language_manager:

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:

\Drupal\simple_sitemap\Logger $logger:

\Drupal\simple_sitemap\EntityHelper $entityHelper:

Overrides UrlGeneratorBase::__construct

4 calls to EntityUrlGeneratorBase::__construct()
CustomUrlGenerator::__construct in src/Plugin/simple_sitemap/UrlGenerator/CustomUrlGenerator.php
CustomUrlGenerator constructor.
EntityMenuLinkContentUrlGenerator::__construct in src/Plugin/simple_sitemap/UrlGenerator/EntityMenuLinkContentUrlGenerator.php
EntityMenuLinkContentUrlGenerator constructor.
EntityUrlGenerator::__construct in src/Plugin/simple_sitemap/UrlGenerator/EntityUrlGenerator.php
EntityUrlGenerator constructor.
ViewsUrlGenerator::__construct in modules/simple_sitemap_views/src/Plugin/simple_sitemap/UrlGenerator/ViewsUrlGenerator.php
ViewsUrlGenerator constructor.
4 methods override EntityUrlGeneratorBase::__construct()
CustomUrlGenerator::__construct in src/Plugin/simple_sitemap/UrlGenerator/CustomUrlGenerator.php
CustomUrlGenerator constructor.
EntityMenuLinkContentUrlGenerator::__construct in src/Plugin/simple_sitemap/UrlGenerator/EntityMenuLinkContentUrlGenerator.php
EntityMenuLinkContentUrlGenerator constructor.
EntityUrlGenerator::__construct in src/Plugin/simple_sitemap/UrlGenerator/EntityUrlGenerator.php
EntityUrlGenerator constructor.
ViewsUrlGenerator::__construct in modules/simple_sitemap_views/src/Plugin/simple_sitemap/UrlGenerator/ViewsUrlGenerator.php
ViewsUrlGenerator constructor.

File

src/Plugin/simple_sitemap/UrlGenerator/EntityUrlGeneratorBase.php, line 65

Class

EntityUrlGeneratorBase
Class EntityUrlGeneratorBase @package Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Simplesitemap $generator, Logger $logger, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager, EntityHelper $entityHelper) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $generator, $logger);
  $this->languages = $language_manager
    ->getLanguages();
  $this->defaultLanguageId = $language_manager
    ->getDefaultLanguage()
    ->getId();
  $this->entityTypeManager = $entity_type_manager;
  $this->anonUser = new AnonymousUserSession();
  $this->entityHelper = $entityHelper;
  $this->isMultilingualSitemap = SitemapGeneratorBase::isMultilingualSitemap();
}