public function PathProcessorFront::processOutbound

Implements Drupal\Core\PathProcessor\OutboundPathProcessorInterface::processOutbound().

Overrides OutboundPathProcessorInterface::processOutbound

File

drupal/core/lib/Drupal/Core/PathProcessor/PathProcessorFront.php, line 51
Contains Drupal\Core\PathProcessor\PathProcessorFront.

Class

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

Namespace

Drupal\Core\PathProcessor

Code

public function processOutbound($path, &$options = array(), Request $request = NULL) {

  // The special path '<front>' links to the default front page.
  if ($path == '<front>') {
    $path = '';
  }
  return $path;
}