function MultisiteValidator::validate
Same name and namespace in other branches
- 11.x core/modules/package_manager/src/Validator/MultisiteValidator.php \Drupal\package_manager\Validator\MultisiteValidator::validate()
Validates that the current site is not part of a multisite.
Parameters
\Drupal\package_manager\Event\SandboxValidationEvent $event: The event being handled.
Overrides BaseRequirementValidatorTrait::validate
File
-
core/
modules/ package_manager/ src/ Validator/ MultisiteValidator.php, line 31
Class
- MultisiteValidator
- Checks that the current site is not part of a multisite.
Namespace
Drupal\package_manager\ValidatorCode
public function validate(SandboxValidationEvent $event) : void {
if ($this->isMultisite()) {
$event->addError([
$this->t('Drupal multisite is not supported by Package Manager.'),
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.