You are here

protected function UltimenuController::getFrontPagePath in Ultimenu 8.2

Gets the current front page path.

Return value

string The front page path.

1 call to UltimenuController::getFrontPagePath()
UltimenuController::getCurrentPath in src/Controller/UltimenuController.php
Gets the current page path.

File

src/Controller/UltimenuController.php, line 167

Class

UltimenuController
Provides controller for Ultimenu region route.

Namespace

Drupal\ultimenu\Controller

Code

protected function getFrontPagePath() {

  // Lazy-load front page config.
  if (!isset($this->frontPage)) {
    $this->frontPage = $this->ultimenuManager
      ->getConfig('system.site')
      ->get('page.front');
  }
  return $this->frontPage;
}