protected PlaceholderingRenderCache::getFromPlaceholderResultsCache(array $elements)
Retrieves an auto-placeholdered renderable array from the static cache.
array $elements: A renderable array.
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.
protected function getFromPlaceholderResultsCache(array $elements) { $placeholder_element = $this->placeholderGenerator->createPlaceholder($elements); $placeholder = (string) $placeholder_element['#markup']; if (isset($this->placeholderResultsCache[$placeholder])) { return $this->placeholderResultsCache[$placeholder]; } return FALSE; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!PlaceholderingRenderCache.php/function/PlaceholderingRenderCache::getFromPlaceholderResultsCache/8.1.x