function PathProcessorFront::processOutbound
Overrides OutboundPathProcessorInterface::processOutbound
File
-
core/
lib/ Drupal/ Core/ PathProcessor/ PathProcessorFront.php, line 62
Class
- PathProcessorFront
- Processes the inbound path by resolving it to the front page if empty.
Namespace
Drupal\Core\PathProcessorCode
public function processOutbound($path, &$options = [], Request $request = NULL, BubbleableMetadata $bubbleable_metadata = NULL) {
// The special path '<front>' links to the default front page.
if ($path === '/<front>') {
$path = '/';
}
return $path;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.