You are here

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

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

EntityUrlGenerator 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\Manager\EntityManager $entities_manager:

\Drupal\simple_sitemap\Entity\EntityHelper $entity_helper:

\Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\UrlGeneratorManager $url_generator_manager:

\Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache:

Overrides EntityUrlGeneratorBase::__construct

File

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

Class

EntityUrlGenerator
Class EntityUrlGenerator

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, EntityManager $entities_manager, UrlGeneratorManager $url_generator_manager, MemoryCacheInterface $memory_cache) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $logger, $settings, $language_manager, $entity_type_manager, $entity_helper);
  $this->entitiesManager = $entities_manager;
  $this->urlGeneratorManager = $url_generator_manager;
  $this->entityMemoryCache = $memory_cache;
  $this->entitiesPerDataset = $this->settings
    ->get('entities_per_queue_item', 50);
}