class PathProcessorFront implements InboundPathProcessorInterface (View source)

Processes the inbound path by resolving it to the front page if empty.

Properties

protected ConfigFactoryInterface $config

A config factory for retrieving required config settings.

Methods

__construct(ConfigFactoryInterface $config)

Constructs a PathProcessorFront object.

string
processInbound(string $path, Request $request)

Processes the inbound path.

Details

__construct(ConfigFactoryInterface $config)

Constructs a PathProcessorFront object.

Parameters

ConfigFactoryInterface $config

A config factory for retrieving the site front page configuration.

string processInbound(string $path, Request $request)

Processes the inbound path.

Implementations may make changes to the request object passed in but should avoid all other side effects. This method can be called to process requests other than the current request.

Parameters

string $path

The path to process, with a leading slash.

Request $request

The HttpRequest object representing the request to process. Note, if this method is being called via the path_processor_manager service and is not part of routing, the current request object must be cloned before being passed in.

Return Value

string

The processed path.