private function ExcludedModulesEventSubscriber::getExcludedModules in Drupal 9
Same name and namespace in other branches
- 8 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\EventSubscriberCode
private function getExcludedModules() {
return $this->settings
->get(self::EXCLUDED_MODULES_KEY, []);
}