function BaseRequirementsFulfilledValidatorTest::validate
Overrides BaseRequirementValidatorTrait::validate
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ BaseRequirementsFulfilledValidatorTest.php, line 37
Class
- BaseRequirementsFulfilledValidatorTest
- @covers \Drupal\package_manager\Validator\BaseRequirementsFulfilledValidator @covers \Drupal\package_manager\Validator\BaseRequirementValidatorTrait
Namespace
Drupal\Tests\package_manager\KernelCode
public function validate(PreOperationStageEvent $event) : void {
if (get_class($event) === $this->eventClass) {
$event->addError([
t('This will not stand!'),
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.