function BaseRequirementValidatorTrait::validate

Validates base requirements.

Parameters

\Drupal\package_manager\Event\PreOperationStageEvent $event: The event being handled.

8 methods override BaseRequirementValidatorTrait::validate()
BaseRequirementsFulfilledValidatorTest::validate in core/modules/package_manager/tests/src/Kernel/BaseRequirementsFulfilledValidatorTest.php
Validates base requirements.
ComposerValidator::validate in core/modules/package_manager/src/Validator/ComposerValidator.php
Validates that the Composer executable is the correct version.
DiskSpaceValidator::validate in core/modules/package_manager/src/Validator/DiskSpaceValidator.php
Validates that there is enough free disk space to do stage operations.
EnvironmentSupportValidator::validate in core/modules/package_manager/src/Validator/EnvironmentSupportValidator.php
Checks that this environment supports Package Manager.
MultisiteValidator::validate in core/modules/package_manager/src/Validator/MultisiteValidator.php
Validates that the current site is not part of a multisite.

... See full list

File

core/modules/package_manager/src/Validator/BaseRequirementValidatorTrait.php, line 32

Class

BaseRequirementValidatorTrait
Provides methods for base requirement validators.

Namespace

Drupal\package_manager\Validator

Code

public abstract function validate(PreOperationStageEvent $event) : void;

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