public function PathProcessorFront::processInbound

Implements Drupal\Core\PathProcessor\InboundPathProcessorInterface::processInbound().

Overrides InboundPathProcessorInterface::processInbound

File

drupal/core/lib/Drupal/Core/PathProcessor/PathProcessorFront.php, line 38
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 processInbound($path, Request $request) {
  if (empty($path)) {
    $path = $this->config
      ->get('system.site')
      ->get('page.front');
    if (empty($path)) {
      $path = 'user';
    }
  }
  return $path;
}