function SettingsValidator::validate
Checks that Drupal's settings are valid for Package Manager.
File
-
core/
modules/ package_manager/ src/ Validator/ SettingsValidator.php, line 30
Class
- SettingsValidator
- Checks that Drupal's settings are valid for Package Manager.
Namespace
Drupal\package_manager\ValidatorCode
public function validate(PreOperationStageEvent $event) : void {
if (Settings::get('update_fetch_with_http_fallback')) {
$event->addError([
$this->t('The <code>update_fetch_with_http_fallback</code> setting must be disabled.'),
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.