You are here

public function UrlGeneratorManager::__construct in Simple XML sitemap 8.2

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

UrlGeneratorManager constructor.

Parameters

\Traversable $namespaces:

\Drupal\Core\Cache\CacheBackendInterface $cache_backend:

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler:

Overrides DefaultPluginManager::__construct

File

src/Plugin/simple_sitemap/UrlGenerator/UrlGeneratorManager.php, line 21

Class

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

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/simple_sitemap/UrlGenerator', $namespaces, $module_handler, 'Drupal\\simple_sitemap\\Plugin\\simple_sitemap\\UrlGenerator\\UrlGeneratorInterface', 'Drupal\\simple_sitemap\\Annotation\\UrlGenerator');
  $this
    ->alterInfo('simple_sitemap_url_generators');
  $this
    ->setCacheBackend($cache_backend, 'simple_sitemap:url_generator');
}