You are here

function maintenance_exempt_get_urls in Maintenance Exempt 8

Same name and namespace in other branches
  1. 7 maintenance_exempt.module \maintenance_exempt_get_urls()

Get list of exempt URLs from settings.

Return value

array URLs that should be exempt from maintenance mode.

File

./maintenance_exempt.module, line 117
Allow exemption from maintenance mode.

Code

function maintenance_exempt_get_urls() {
  $config = \Drupal::config('maintenance_exempt.settings');
  $allowed_urls = $config
    ->get('exempt_urls');
  return array_map('trim', explode("\n", $allowed_urls));
}