function ExcludedModulesEventSubscriber::getExcludedModules

Same name in other branches
  1. 9 core/lib/Drupal/Core/EventSubscriber/ExcludedModulesEventSubscriber.php \Drupal\Core\EventSubscriber\ExcludedModulesEventSubscriber::getExcludedModules()
  2. 10 core/lib/Drupal/Core/EventSubscriber/ExcludedModulesEventSubscriber.php \Drupal\Core\EventSubscriber\ExcludedModulesEventSubscriber::getExcludedModules()
  3. 11.x 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.

3 calls to ExcludedModulesEventSubscriber::getExcludedModules()
ExcludedModulesEventSubscriber::getDependentConfigNames in core/lib/Drupal/Core/EventSubscriber/ExcludedModulesEventSubscriber.php
Get all the configuration which depends on one of the excluded modules.
ExcludedModulesEventSubscriber::onConfigTransformExport in core/lib/Drupal/Core/EventSubscriber/ExcludedModulesEventSubscriber.php
Transform the storage which is used to export the configuration.
ExcludedModulesEventSubscriber::onConfigTransformImport in core/lib/Drupal/Core/EventSubscriber/ExcludedModulesEventSubscriber.php
Transform the storage which is used to import the configuration.

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, []);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.