public static function ExcludePathSubscriber::getExcludedPaths in Tome 8
Returns paths excluded globally and per site.
Return value
array An array of excluded paths.
2 calls to ExcludePathSubscriber::getExcludedPaths()
- ExcludePathSubscriber::collectPaths in modules/
tome_static/ src/ EventSubscriber/ ExcludePathSubscriber.php - Reacts to a collect paths event.
- StaticGenerator::getExcludedPaths in modules/
tome_static/ src/ StaticGenerator.php - Returns paths excluded globally and per site.
File
- modules/
tome_static/ src/ EventSubscriber/ ExcludePathSubscriber.php, line 68
Class
- ExcludePathSubscriber
- Excludes a paths from static generation.
Namespace
Drupal\tome_static\EventSubscriberCode
public static function getExcludedPaths() {
$excluded_paths = self::EXCLUDED_PATHS;
$site_paths = Settings::get('tome_static_path_exclude', []);
if (is_array($site_paths)) {
$excluded_paths = array_merge(self::EXCLUDED_PATHS, $site_paths);
}
return $excluded_paths;
}