function EntityViewBuilder::unsetRecursiveRenderProtection
Entity render array #post_render callback.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityViewBuilder.php, line 576
Class
- EntityViewBuilder
- Base class for entity view builders.
Namespace
Drupal\Core\EntityCode
public function unsetRecursiveRenderProtection(string $renderedEntity, array $build) : string {
// Removes rendered entity matching cache keys from recursive render
// tracking, once the entity has been rendered.
$recursion_key = $this->getRenderRecursionKey($build);
unset(static::$recursionKeys[$recursion_key]);
return $renderedEntity;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.