Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Render/Renderer.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 | 7a779792577d |
children | c2387f117808 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
216 $elements['#access'] = call_user_func($elements['#access_callback'], $elements); | 216 $elements['#access'] = call_user_func($elements['#access_callback'], $elements); |
217 } | 217 } |
218 | 218 |
219 // Early-return nothing if user does not have access. | 219 // Early-return nothing if user does not have access. |
220 if (isset($elements['#access'])) { | 220 if (isset($elements['#access'])) { |
221 // If #access is an AccessResultInterface object, we must apply it's | 221 // If #access is an AccessResultInterface object, we must apply its |
222 // cacheability metadata to the render array. | 222 // cacheability metadata to the render array. |
223 if ($elements['#access'] instanceof AccessResultInterface) { | 223 if ($elements['#access'] instanceof AccessResultInterface) { |
224 $this->addCacheableDependency($elements, $elements['#access']); | 224 $this->addCacheableDependency($elements, $elements['#access']); |
225 if (!$elements['#access']->isAllowed()) { | 225 if (!$elements['#access']->isAllowed()) { |
226 return ''; | 226 return ''; |