You are here

function search_log_install in Search Log 8

Same name and namespace in other branches
  1. 6 search_log.install \search_log_install()
  2. 7 search_log.install \search_log_install()

Implements hook_install().

File

./search_log.install, line 84
Install file for the Search log module.

Code

function search_log_install() {
  $url = Url::fromUserInput('/admin/config/search/search_log');
  $link = Link::fromTextAndUrl('configure Search log', $url)
    ->toString();
  $message = new TranslatableMarkup("Search log table installed. @link", [
    '@link' => $link,
  ]);
  \Drupal::messenger()
    ->addMessage($message, 'status');
}