function menu_manipulator_install in Menu Manipulator 8
Same name and namespace in other branches
- 8.2 menu_manipulator.install \menu_manipulator_install()
- 3.0.x menu_manipulator.install \menu_manipulator_install()
- 2.0.x menu_manipulator.install \menu_manipulator_install()
Implements hook_install().
File
- ./
menu_manipulator.install, line 14 - Contains menu_manipulator.install.
Code
function menu_manipulator_install() {
$message = t('Menu Manipulator enabled. Visit the configuration page under @config_url', [
'@config_url' => Link::fromTextAndUrl('Administer > Site configuration > User Interface', Url::fromUserInput('/admin/config/user-interface/menu-manipulator'))
->toString(),
]);
\Drupal::messenger()
->addStatus($message);
}