You are here

function ckeditor_responsive_plugin_install in CKEditor Responsive Plugin 2.0.x

Same name and namespace in other branches
  1. 8 ckeditor_responsive_plugin.install \ckeditor_responsive_plugin_install()

Display a message after the module installation. Implements hook_install().

File

./ckeditor_responsive_plugin.install, line 13
Install, update, and uninstall functions for the module.

Code

function ckeditor_responsive_plugin_install() {
  Drupal::messenger()
    ->addStatus(t('The Responsive Area plugin is now enable, please add the
   corresponding button on <a href="@ck_config_url">CKEditor toolbar</a>.<br />
   Please look at the <a href="@link" target="_blank">readme file</a> for more
   information.', [
    '@link' => 'https://git.drupalcode.org/project/ckeditor_responsive_plugin/-/blob/8.x-1.x/README.txt',
    '@ck_config_url' => Url::fromRoute('filter.admin_overview')
      ->toString(),
  ]));
}