You are here

function linkchecker_install in Link checker 8

Same name and namespace in other branches
  1. 5.2 linkchecker.install \linkchecker_install()
  2. 5 linkchecker.install \linkchecker_install()
  3. 6.2 linkchecker.install \linkchecker_install()
  4. 7 linkchecker.install \linkchecker_install()

Implements hook_install().

File

./linkchecker.install, line 15
Installation file for Link Checker module.

Code

function linkchecker_install() {
  $linkchecker_default_impersonate_account = User::load(1);
  \Drupal::configFactory()
    ->getEditable('linkchecker.settings')
    ->set('error.impersonate_account', $linkchecker_default_impersonate_account
    ->getAccountName())
    ->save();
}