You are here

public function OgMenuInstanceController::editFormTitle in Organic Groups Menu (OG Menu) 8

Route title callback.

Parameters

\Drupal\og_menu\OgMenuInstanceInterface $ogmenu_instance: The OG Menu instance that is being edited.

Return value

array The title as a render array.

1 string reference to 'OgMenuInstanceController::editFormTitle'
og_menu.routing.yml in ./og_menu.routing.yml
og_menu.routing.yml

File

src/Controller/OgMenuInstanceController.php, line 123
Contains Drupal\og_menu\Controller\OgMenuInstanceController.

Class

OgMenuInstanceController
Class OgMenuInstanceController.

Namespace

Drupal\og_menu\Controller

Code

public function editFormTitle(OgMenuInstanceInterface $ogmenu_instance) {
  return [
    '#markup' => t('Edit menu %menu of %group', [
      '%menu' => $ogmenu_instance
        ->bundle(),
      '%group' => $ogmenu_instance
        ->label(),
    ]),
    '#allowed_tags' => Xss::getHtmlTagList(),
  ];
}