You are here

protected function SitemapSettingsForm::getMenus in Sitemap 8

Helper function to get all menus.

Return value

\Drupal\Core\Entity\EntityInterface[]|\Drupal\system\Entity\Menu[] The list of menus.

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

File

src/Form/SitemapSettingsForm.php, line 414

Class

SitemapSettingsForm
Provides a configuration form for sitemap.

Namespace

Drupal\sitemap\Form

Code

protected function getMenus() {
  return Menu::loadMultiple();
}