You are here

function protected_pages_install in Protected Pages 8

Implements hook_enable().

File

./protected_pages.install, line 46
Protected Pages install file.

Code

function protected_pages_install() {
  $message = \Drupal::translation()
    ->translate('The Protected Pages module has been successfully enabled. Visit the <a href="@permissions">permissions</a> for your site.', [
    '@permissions' => Url::fromUri('internal:/admin/people/permissions', [
      'fragment' => 'module-protected_pages',
    ])
      ->toString(),
  ]);
  \Drupal::messenger()
    ->addMessage($message);
}