function rest_menu_items_install in Rest menu items 8.2
Same name and namespace in other branches
- 3.0.x rest_menu_items.install \rest_menu_items_install()
Implements hook_install().
Show a message to the settings page.
File
- ./
rest_menu_items.install, line 11
Code
function rest_menu_items_install() {
$settings_link = Link::fromTextAndUrl(t('here'), Url::fromRoute('rest_menu_items.config_form'))
->toString();
// Display a message.
\Drupal::messenger()
->addMessage(t('Click @link to configure Rest Menu Items!', array(
'@link' => $settings_link,
)));
}