function StatusCheckEvent::addResult

Overrides PreOperationStageEvent::addResult

1 call to StatusCheckEvent::addResult()
StatusCheckEvent::addWarning in core/modules/package_manager/src/Event/StatusCheckEvent.php
Adds warning information to the event.

File

core/modules/package_manager/src/Event/StatusCheckEvent.php, line 69

Class

StatusCheckEvent
Event fired to check the status of the system to use Package Manager.

Namespace

Drupal\package_manager\Event

Code

public function addResult(ValidationResult $result) : void {
    // Override the parent to also allow warnings.
    $this->results[] = $result;
}

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