function PreOperationStageEvent::getResults
Gets the validation results.
Parameters
int|null $severity: (optional) The severity for the results to return. Should be one of the SystemManager::REQUIREMENT_* constants.
Return value
\Drupal\package_manager\ValidationResult[] The validation results.
1 call to PreOperationStageEvent::getResults()
- PreOperationStageEvent::stopPropagation in core/
modules/ package_manager/ src/ Event/ PreOperationStageEvent.php
File
-
core/
modules/ package_manager/ src/ Event/ PreOperationStageEvent.php, line 33
Class
- PreOperationStageEvent
- Base class for events dispatched before a stage life cycle operation.
Namespace
Drupal\package_manager\EventCode
public function getResults(?int $severity = NULL) : array {
if ($severity !== NULL) {
return array_filter($this->results, function ($result) use ($severity) {
return $result->severity === $severity;
});
}
return $this->results;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.