You are here

public function EntityUrlGeneratorBase::__construct in Simple XML sitemap 4.x

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

EntityUrlGeneratorBase constructor.

Parameters

array $configuration:

$plugin_id:

$plugin_definition:

\Drupal\simple_sitemap\Logger $logger:

\Drupal\simple_sitemap\Settings $settings:

\Drupal\Core\Language\LanguageManagerInterface $language_manager:

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:

\Drupal\simple_sitemap\Entity\EntityHelper $entity_helper:

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 60

Class

EntityUrlGeneratorBase
Class EntityUrlGeneratorBase

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Code

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