public PlaceholderGeneratorInterface::createPlaceholder(array $element)
Turns the given element into a placeholder.
Placeholdering allows us to avoid "poor cacheability contamination": this maps the current render array to one that only has #markup and #attached, and #attached contains a placeholder with this element's prior cacheability metadata. In other words: this placeholder is perfectly cacheable, the placeholder replacement logic effectively cordons off poor cacheability.
array $element: The render array to create a placeholder for.
array Render array with placeholder markup and the attached placeholder replacement metadata.
public function createPlaceholder(array $element);
© 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!PlaceholderGeneratorInterface.php/function/PlaceholderGeneratorInterface::createPlaceholder/8.1.x