public function UrlGeneratorManager::__construct in Simple XML sitemap 4.x
Same name and namespace in other branches
- 8.3 src/Plugin/simple_sitemap/UrlGenerator/UrlGeneratorManager.php \Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\UrlGeneratorManager::__construct()
- 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\UrlGeneratorCode
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');
}