public function RenderStack::isRecursive in Render cache 7.2
Whether we are in a recursive context.
This is useful to determine e.g. if its safe to output a placeholder.
Return value
bool TRUE if its recursive, FALSE otherwise.
Overrides RenderStackInterface::isRecursive
3 calls to RenderStack::isRecursive()
- RenderStack::drupal_add_assets in src/
Cache/ RenderStack.php - Helper function to add JS/CSS assets to the recursion storage.
- RenderStack::drupal_add_library in src/
Cache/ RenderStack.php - Helper function to add library assets to the recursion storage.
- RenderStack::drupal_process_attached in src/
Cache/ RenderStack.php - Helper function to add any #attached assets to the recursion storage.
File
- src/
Cache/ RenderStack.php, line 96 - Contains \Drupal\render_cache\Cache\RenderStack
Class
- RenderStack
- Defines the RenderStack service.
Namespace
Drupal\render_cache\CacheCode
public function isRecursive() {
return $this->recursionLevel > 0;
}