public function CustomUrlGenerator::__construct in Simple XML sitemap 4.x
Same name and namespace in other branches
- 8.3 src/Plugin/simple_sitemap/UrlGenerator/CustomUrlGenerator.php \Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\CustomUrlGenerator::__construct()
- 8.2 src/Plugin/simple_sitemap/UrlGenerator/CustomUrlGenerator.php \Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\CustomUrlGenerator::__construct()
CustomUrlGenerator 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\Entity\EntityHelper $entity_helper:
\Drupal\simple_sitemap\Manager\CustomLinkManager $custom_links:
\Drupal\Core\Path\PathValidator $path_validator:
Overrides EntityUrlGeneratorBase::__construct
File
- src/
Plugin/ simple_sitemap/ UrlGenerator/ CustomUrlGenerator.php, line 61
Class
- CustomUrlGenerator
- Class CustomUrlGenerator
Namespace
Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGeneratorCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, Logger $logger, Settings $settings, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager, EntityHelper $entity_helper, CustomLinkManager $custom_links, PathValidator $path_validator) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $logger, $settings, $language_manager, $entity_type_manager, $entity_helper);
$this->customLinks = $custom_links;
$this->pathValidator = $path_validator;
}