You are here

menu_manipulator.install in Menu Manipulator 8

File

menu_manipulator.install
View 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

Namesort descending Description
menu_manipulator_install Implements hook_install().