menu_manipulator.install in Menu Manipulator 8
Same filename and directory in other branches
Contains menu_manipulator.install.
File
menu_manipulator.installView source
<?php
/**
* @file
* Contains menu_manipulator.install.
*/
use Drupal\Core\Link;
use Drupal\Core\Url;
/**
* Implements hook_install().
*/
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);
}
Functions
Name | Description |
---|---|
menu_manipulator_install | Implements hook_install(). |