You are here

private function SinglePageSiteConfigForm::getMenus in Single Page Site 8

Same name and namespace in other branches
  1. 2.x src/Form/SinglePageSiteConfigForm.php \Drupal\single_page_site\Form\SinglePageSiteConfigForm::getMenus()
  2. 2.0.x src/Form/SinglePageSiteConfigForm.php \Drupal\single_page_site\Form\SinglePageSiteConfigForm::getMenus()

Fetches all menus.

Return value

mixed Return Menus.

1 call to SinglePageSiteConfigForm::getMenus()
SinglePageSiteConfigForm::buildForm in src/Form/SinglePageSiteConfigForm.php
Form constructor.

File

src/Form/SinglePageSiteConfigForm.php, line 241

Class

SinglePageSiteConfigForm
Class SinglePageSiteConfigForm @package Drupal\single_page_site\Form

Namespace

Drupal\single_page_site\Form

Code

private function getMenus() {
  return \Drupal::entityQuery('menu')
    ->execute();
}