Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates-3449631
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
automatic_updates-3449631
Commits
f8c1ea38
Commit
f8c1ea38
authored
2 years ago
by
Theresa Grannum
Committed by
Adam G-H
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3280204
by Theresa.Grannum: Missing documentation on 'addError' and 'add Warning'
parent
bdbbb046
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package_manager/src/Event/PreOperationStageEvent.php
+6
-0
6 additions, 0 deletions
package_manager/src/Event/PreOperationStageEvent.php
src/Event/ReadinessCheckEvent.php
+6
-0
6 additions, 0 deletions
src/Event/ReadinessCheckEvent.php
with
12 additions
and
0 deletions
package_manager/src/Event/PreOperationStageEvent.php
+
6
−
0
View file @
f8c1ea38
...
...
@@ -38,6 +38,12 @@ abstract class PreOperationStageEvent extends StageEvent {
/**
* Adds error information to the event.
*
* @param \Drupal\Core\StringTranslation\TranslatableMarkup[] $messages
* The error messages.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $summary
* (optional) The summary of error messages. Only required if there
* is more than one message.
*/
public
function
addError
(
array
$messages
,
?TranslatableMarkup
$summary
=
NULL
):
void
{
$this
->
results
[]
=
ValidationResult
::
createError
(
$messages
,
$summary
);
...
...
This diff is collapsed.
Click to expand it.
src/Event/ReadinessCheckEvent.php
+
6
−
0
View file @
f8c1ea38
...
...
@@ -65,6 +65,12 @@ class ReadinessCheckEvent extends PreOperationStageEvent {
/**
* Adds warning information to the event.
*
* @param \Drupal\Core\StringTranslation\TranslatableMarkup[] $messages
* The warning messages.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $summary
* (optional) The summary of warning messages. Required if there is more
* than one message.
*/
public
function
addWarning
(
array
$messages
,
?TranslatableMarkup
$summary
=
NULL
):
void
{
$this
->
results
[]
=
ValidationResult
::
createWarning
(
$messages
,
$summary
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment