public function TrailingSlashUrlGenerator::__construct in Trailing Slash 8
Parameters
\Drupal\Core\Routing\RouteProviderInterface $provider:
\Drupal\Core\PathProcessor\OutboundPathProcessorInterface $path_processor:
\Drupal\Core\RouteProcessor\OutboundRouteProcessorInterface $route_processor:
\Symfony\Component\HttpFoundation\RequestStack $request_stack:
array $filter_protocols:
\Drupal\language\HttpKernel\PathProcessorLanguage $path_processor_language:
Overrides UrlGenerator::__construct
File
- src/
Routing/ TrailingSlashUrlGenerator.php, line 35
Class
- TrailingSlashUrlGenerator
- Generates URLs from route names and parameters.
Namespace
Drupal\trailing_slash\RoutingCode
public function __construct(RouteProviderInterface $provider, OutboundPathProcessorInterface $path_processor, OutboundRouteProcessorInterface $route_processor, RequestStack $request_stack, array $filter_protocols = [
'http',
'https',
], PathProcessorLanguage $path_processor_language) {
parent::__construct($provider, $path_processor, $route_processor, $request_stack, $filter_protocols);
$this->pathProcessorLanguage = $path_processor_language;
}