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'
File
- src/
Controller/ OgMenuInstanceController.php, line 123 - Contains Drupal\og_menu\Controller\OgMenuInstanceController.
Class
- OgMenuInstanceController
- Class OgMenuInstanceController.
Namespace
Drupal\og_menu\ControllerCode
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(),
];
}