function PathProcessorFront::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/PathProcessor/PathProcessorFront.php \Drupal\Core\PathProcessor\PathProcessorFront::__construct()
  2. 8.9.x core/lib/Drupal/Core/PathProcessor/PathProcessorFront.php \Drupal\Core\PathProcessor\PathProcessorFront::__construct()
  3. 11.x core/lib/Drupal/Core/PathProcessor/PathProcessorFront.php \Drupal\Core\PathProcessor\PathProcessorFront::__construct()

Constructs a PathProcessorFront object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config: A config factory for retrieving the site front page configuration.

File

core/lib/Drupal/Core/PathProcessor/PathProcessorFront.php, line 27

Class

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

Namespace

Drupal\Core\PathProcessor

Code

public function __construct(ConfigFactoryInterface $config) {
    $this->config = $config;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.