function SandboxValidationEvent::stopPropagation

File

core/modules/package_manager/src/Event/SandboxValidationEvent.php, line 87

Class

SandboxValidationEvent
Base class for events dispatched before a stage life cycle operation.

Namespace

Drupal\package_manager\Event

Code

public function stopPropagation() : void {
  if (empty($this->getResults(RequirementSeverity::Error->value))) {
    $this->addErrorFromThrowable(new \LogicException('Event propagation stopped without any errors added to the event. This bypasses the package_manager validation system.'));
  }
  parent::stopPropagation();
}

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