You are here

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

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. 8.2 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 22

Class

UrlGeneratorManager
Class UrlGeneratorManager

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, UrlGeneratorInterface::class, UrlGenerator::class);
  $this
    ->alterInfo('simple_sitemap_url_generators');
  $this
    ->setCacheBackend($cache_backend, 'simple_sitemap:url_generator');
}