degov-8.x-2.0/modules/degov_restrict_ip/degov_restrict_ip.install
modules/degov_restrict_ip/degov_restrict_ip.install
<?php
/**
* Implements hook_install().
*/
function degov_restrict_ip_install() {
$paths = ['/admin/*'];
/* @var \Drupal\restrict_ip\Mapper\RestrictIpMapperInterface $mapper */
$mapper = \Drupal::service('restrict_ip.mapper');
$mapper->saveBlacklistedPaths($paths);
}
