Skip to content

Commit 0010023

Browse files
committed
Issue #3487014 by liam morland, nod_, smustgrave, quietone: Fix documentation for optional params in MessengerInterface
1 parent bf16e91 commit 0010023

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lib/Drupal/Core/Messenger/MessengerInterface.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ interface MessengerInterface {
3030
* The messages will be displayed in the order they got added later.
3131
*
3232
* @param string|\Drupal\Component\Render\MarkupInterface $message
33-
* (optional) The translated message to be displayed to the user. For
34-
* consistency with other messages, it should begin with a capital letter
35-
* and end with a period.
33+
* The translated message to be displayed to the user. For consistency with
34+
* other messages, it should begin with a capital letter and end with a
35+
* period.
3636
* @param string $type
3737
* (optional) The message's type. Either self::TYPE_STATUS,
3838
* self::TYPE_WARNING, or self::TYPE_ERROR.
@@ -48,9 +48,9 @@ public function addMessage($message, $type = self::TYPE_STATUS, $repeat = FALSE)
4848
* Adds a new status message to the queue.
4949
*
5050
* @param string|\Drupal\Component\Render\MarkupInterface $message
51-
* (optional) The translated message to be displayed to the user. For
52-
* consistency with other messages, it should begin with a capital letter
53-
* and end with a period.
51+
* The translated message to be displayed to the user. For consistency with
52+
* other messages, it should begin with a capital letter and end with a
53+
* period.
5454
* @param bool $repeat
5555
* (optional) If this is FALSE and the message is already set, then the
5656
* message won't be repeated. Defaults to FALSE.
@@ -63,9 +63,9 @@ public function addStatus($message, $repeat = FALSE);
6363
* Adds a new error message to the queue.
6464
*
6565
* @param string|\Drupal\Component\Render\MarkupInterface $message
66-
* (optional) The translated message to be displayed to the user. For
67-
* consistency with other messages, it should begin with a capital letter
68-
* and end with a period.
66+
* The translated message to be displayed to the user. For consistency with
67+
* other messages, it should begin with a capital letter and end with a
68+
* period.
6969
* @param bool $repeat
7070
* (optional) If this is FALSE and the message is already set, then the
7171
* message won't be repeated. Defaults to FALSE.
@@ -78,9 +78,9 @@ public function addError($message, $repeat = FALSE);
7878
* Adds a new warning message to the queue.
7979
*
8080
* @param string|\Drupal\Component\Render\MarkupInterface $message
81-
* (optional) The translated message to be displayed to the user. For
82-
* consistency with other messages, it should begin with a capital letter
83-
* and end with a period.
81+
* The translated message to be displayed to the user. For consistency with
82+
* other messages, it should begin with a capital letter and end with a
83+
* period.
8484
* @param bool $repeat
8585
* (optional) If this is FALSE and the message is already set, then the
8686
* message won't be repeated. Defaults to FALSE.

0 commit comments

Comments
 (0)