Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Utility/ThemeRegistry.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
94 public function has($key) { | 94 public function has($key) { |
95 // Since the theme registry allows for theme hooks to be requested that | 95 // Since the theme registry allows for theme hooks to be requested that |
96 // are not registered, just check the existence of the key in the registry. | 96 // are not registered, just check the existence of the key in the registry. |
97 // Use array_key_exists() here since a NULL value indicates that the theme | 97 // Use array_key_exists() here since a NULL value indicates that the theme |
98 // hook exists but has not yet been requested. | 98 // hook exists but has not yet been requested. |
99 return array_key_exists($key, $this->storage); | 99 return isset($this->storage[$key]) || array_key_exists($key, $this->storage); |
100 } | 100 } |
101 | 101 |
102 /** | 102 /** |
103 * {@inheritdoc} | 103 * {@inheritdoc} |
104 */ | 104 */ |