function RenderCacheInterface::get
Same name in other branches
- 9 core/lib/Drupal/Core/Render/RenderCacheInterface.php \Drupal\Core\Render\RenderCacheInterface::get()
- 8.9.x core/lib/Drupal/Core/Render/RenderCacheInterface.php \Drupal\Core\Render\RenderCacheInterface::get()
- 11.x core/lib/Drupal/Core/Render/RenderCacheInterface.php \Drupal\Core\Render\RenderCacheInterface::get()
Gets the cached, pre-rendered element of a renderable element from cache.
Parameters
array $elements: A renderable array.
Return value
array|false A renderable array, with the original element and all its children pre- rendered, or FALSE if no cached copy of the element is available.
See also
\Drupal\Core\Render\RendererInterface::render()
::set()
File
-
core/
lib/ Drupal/ Core/ Render/ RenderCacheInterface.php, line 48
Class
- RenderCacheInterface
- Defines an interface for caching rendered render arrays.
Namespace
Drupal\Core\RenderCode
public function get(array $elements);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.