You are here

private function ExcludedModulesEventSubscriber::getExcludedModules in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/ExcludedModulesEventSubscriber.php \Drupal\Core\EventSubscriber\ExcludedModulesEventSubscriber::getExcludedModules()
  2. 9 core/lib/Drupal/Core/EventSubscriber/ExcludedModulesEventSubscriber.php \Drupal\Core\EventSubscriber\ExcludedModulesEventSubscriber::getExcludedModules()

Get the modules set as excluded in the Drupal settings.

Return value

string[] An array of module names.

File

core/lib/Drupal/Core/EventSubscriber/ExcludedModulesEventSubscriber.php, line 147

Class

ExcludedModulesEventSubscriber
The event subscriber preventing excluded modules to be exported.

Namespace

Drupal\Core\EventSubscriber

Code

private function getExcludedModules() {
  return $this->settings
    ->get(self::EXCLUDED_MODULES_KEY, []);
}