public function ViewsUrlGenerator::__construct in Simple XML sitemap 8.3
Same name and namespace in other branches
- 4.x modules/simple_sitemap_views/src/Plugin/simple_sitemap/UrlGenerator/ViewsUrlGenerator.php \Drupal\simple_sitemap_views\Plugin\simple_sitemap\UrlGenerator\ViewsUrlGenerator::__construct()
ViewsUrlGenerator constructor.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\simple_sitemap\Simplesitemap $generator: The simple_sitemap.generator service.
\Drupal\simple_sitemap\Logger $logger: The simple_sitemap.logger service.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\simple_sitemap\EntityHelper $entity_helper: The simple_sitemap.entity_helper service.
\Drupal\simple_sitemap_views\SimpleSitemapViews $sitemap_views: Views sitemap data.
\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.
Overrides EntityUrlGeneratorBase::__construct
File
- modules/
simple_sitemap_views/ src/ Plugin/ simple_sitemap/ UrlGenerator/ ViewsUrlGenerator.php, line 67
Class
- ViewsUrlGenerator
- Views URL generator plugin.
Namespace
Drupal\simple_sitemap_views\Plugin\simple_sitemap\UrlGeneratorCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, Simplesitemap $generator, Logger $logger, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager, EntityHelper $entity_helper, SimpleSitemapViews $sitemap_views, RouteProviderInterface $route_provider) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $generator, $logger, $language_manager, $entity_type_manager, $entity_helper);
$this->sitemapViews = $sitemap_views;
$this->routeProvider = $route_provider;
}