Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-foundation/Session/Flash/FlashBagInterface.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
22 { | 22 { |
23 /** | 23 /** |
24 * Adds a flash message for type. | 24 * Adds a flash message for type. |
25 * | 25 * |
26 * @param string $type | 26 * @param string $type |
27 * @param string $message | 27 * @param mixed $message |
28 */ | 28 */ |
29 public function add($type, $message); | 29 public function add($type, $message); |
30 | 30 |
31 /** | 31 /** |
32 * Registers a message for a given type. | 32 * Registers a message for a given type. |
42 * @param string $type Message category type | 42 * @param string $type Message category type |
43 * @param array $default Default value if $type does not exist | 43 * @param array $default Default value if $type does not exist |
44 * | 44 * |
45 * @return array | 45 * @return array |
46 */ | 46 */ |
47 public function peek($type, array $default = array()); | 47 public function peek($type, array $default = []); |
48 | 48 |
49 /** | 49 /** |
50 * Gets all flash messages. | 50 * Gets all flash messages. |
51 * | 51 * |
52 * @return array | 52 * @return array |
59 * @param string $type | 59 * @param string $type |
60 * @param array $default Default value if $type does not exist | 60 * @param array $default Default value if $type does not exist |
61 * | 61 * |
62 * @return array | 62 * @return array |
63 */ | 63 */ |
64 public function get($type, array $default = array()); | 64 public function get($type, array $default = []); |
65 | 65 |
66 /** | 66 /** |
67 * Gets and clears flashes from the stack. | 67 * Gets and clears flashes from the stack. |
68 * | 68 * |
69 * @return array | 69 * @return array |