Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
51 $this->flashes = &$flashes; | 51 $this->flashes = &$flashes; |
52 | 52 |
53 // The logic: messages from the last request will be stored in new, so we move them to previous | 53 // The logic: messages from the last request will be stored in new, so we move them to previous |
54 // This request we will show what is in 'display'. What is placed into 'new' this time round will | 54 // This request we will show what is in 'display'. What is placed into 'new' this time round will |
55 // be moved to display next time round. | 55 // be moved to display next time round. |
56 $this->flashes['display'] = array_key_exists('new', $this->flashes) ? $this->flashes['new'] : []; | 56 $this->flashes['display'] = \array_key_exists('new', $this->flashes) ? $this->flashes['new'] : []; |
57 $this->flashes['new'] = []; | 57 $this->flashes['new'] = []; |
58 } | 58 } |
59 | 59 |
60 /** | 60 /** |
61 * {@inheritdoc} | 61 * {@inheritdoc} |
76 /** | 76 /** |
77 * {@inheritdoc} | 77 * {@inheritdoc} |
78 */ | 78 */ |
79 public function peekAll() | 79 public function peekAll() |
80 { | 80 { |
81 return array_key_exists('display', $this->flashes) ? (array) $this->flashes['display'] : []; | 81 return \array_key_exists('display', $this->flashes) ? (array) $this->flashes['display'] : []; |
82 } | 82 } |
83 | 83 |
84 /** | 84 /** |
85 * {@inheritdoc} | 85 * {@inheritdoc} |
86 */ | 86 */ |
130 /** | 130 /** |
131 * {@inheritdoc} | 131 * {@inheritdoc} |
132 */ | 132 */ |
133 public function has($type) | 133 public function has($type) |
134 { | 134 { |
135 return array_key_exists($type, $this->flashes['display']) && $this->flashes['display'][$type]; | 135 return \array_key_exists($type, $this->flashes['display']) && $this->flashes['display'][$type]; |
136 } | 136 } |
137 | 137 |
138 /** | 138 /** |
139 * {@inheritdoc} | 139 * {@inheritdoc} |
140 */ | 140 */ |