Skip to content
Snippets Groups Projects
Unverified Commit c0b9bacd authored by Ted Bowman's avatar Ted Bowman
Browse files

review package_manager/src/Event

parent 5b941132
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !162. Comments created here will be created in the context of that merge request.
......@@ -3,7 +3,7 @@
namespace Drupal\package_manager\Event;
/**
* Event fired after packages are added to the staging area.
* Event fired after packages are updated to the staging area.
*/
class PostRequireEvent extends StageEvent {
}
......@@ -11,7 +11,7 @@ use Drupal\package_manager\ValidationResult;
abstract class PreOperationStageEvent extends StageEvent {
/**
* {@inheritdoc}
* Adds error information to the event.
*/
public function addError(array $messages, ?TranslatableMarkup $summary = NULL) {
$this->results[] = ValidationResult::createError($messages, $summary);
......
......@@ -3,7 +3,7 @@
namespace Drupal\package_manager\Event;
/**
* Event fired before packages are added to the staging area.
* Event fired before packages are updated to the staging area.
*/
class PreRequireEvent extends PreOperationStageEvent {
}
......@@ -53,7 +53,7 @@ class ReadinessCheckEvent extends PreOperationStageEvent {
}
/**
* {@inheritdoc}
* Adds warning information to the event.
*/
public function addWarning(array $messages, ?TranslatableMarkup $summary = NULL) {
$this->results[] = ValidationResult::createWarning($messages, $summary);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment