function dynamic_layouts_install in Dynamic Layouts 8
Implements hook_install().
Show a message to the settings page.
File
- ./
dynamic_layouts.install, line 16 - Install, update and uninstall functions for the dynamic_layouts module.
Code
function dynamic_layouts_install() {
$settings_link = Link::fromTextAndUrl(t('here'), Url::fromRoute('dynamic_layout.dynamic_layout_settings'))
->toString();
// Display a message.
\Drupal::messenger()
->addStatus(t('Click @link to configure Dynamic Layouts!', array(
'@link' => $settings_link,
)));
}