You are here

public static function OgMenuController::title in Organic Groups Menu (OG Menu) 8

Parameters

\Drupal\og_menu\OgMenuInterface $ogmenu: The og menu object.

Return value

array The page title render array.

1 string reference to 'OgMenuController::title'
og_menu.routing.yml in ./og_menu.routing.yml
og_menu.routing.yml

File

src/Controller/OgMenuController.php, line 24
Contains \Drupal\og_menu\Controller\OgMenuController.

Class

OgMenuController
Defines a route controller for a form for menu link content entity creation.

Namespace

Drupal\og_menu\Controller

Code

public static function title(OgMenuInterface $ogmenu) {
  return [
    '#markup' => $ogmenu
      ->label(),
    '#allowed_tags' => Xss::getHtmlTagList(),
  ];
}