Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ExcludedModulesEventSubscriber.php

function 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, []);
}
RSS feed
Powered by Drupal