You are here

public function UrlGeneratorBase::__construct in Simple XML sitemap 8.2

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

UrlGeneratorBase constructor.

Parameters

array $configuration:

string $plugin_id:

mixed $plugin_definition:

\Drupal\simple_sitemap\Simplesitemap $generator:

\Drupal\simple_sitemap\SitemapGenerator $sitemap_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 UrlGeneratorPluginBase::__construct

4 calls to UrlGeneratorBase::__construct()
ArbitraryUrlGenerator::__construct in src/Plugin/simple_sitemap/UrlGenerator/ArbitraryUrlGenerator.php
ArbitraryUrlGenerator constructor.
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
EntityMenuLinkContentUrlGenerator constructor.
4 methods override UrlGeneratorBase::__construct()
ArbitraryUrlGenerator::__construct in src/Plugin/simple_sitemap/UrlGenerator/ArbitraryUrlGenerator.php
ArbitraryUrlGenerator constructor.
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
EntityMenuLinkContentUrlGenerator constructor.

File

src/Plugin/simple_sitemap/UrlGenerator/UrlGeneratorBase.php, line 94

Class

UrlGeneratorBase
Class UrlGeneratorBase @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, SitemapGenerator $sitemap_generator, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager, Logger $logger, EntityHelper $entityHelper) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->generator = $generator;
  $this->sitemapGenerator = $sitemap_generator;
  $this->languageManager = $language_manager;
  $this->languages = $language_manager
    ->getLanguages();
  $this->defaultLanguageId = $language_manager
    ->getDefaultLanguage()
    ->getId();
  $this->entityTypeManager = $entity_type_manager;
  $this->logger = $logger;
  $this->entityHelper = $entityHelper;
  $this->anonUser = $this->entityTypeManager
    ->getStorage('user')
    ->load(self::ANONYMOUS_USER_ID);
}