protected static property Renderer::$contextCollection in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Render/Renderer.php \Drupal\Core\Render\Renderer::contextCollection
The render context collection.
An individual global render context is tied to the current request. We then need to maintain a different context for each request to correctly handle rendering in subrequests.
This must be static as long as some controllers rebuild the container during a request. This causes multiple renderer instances to co-exist simultaneously, render state getting lost, and therefore causing pages to fail to render correctly. As soon as it is guaranteed that during a request the same container is used, it no longer needs to be static.
Type: \Drupal\Core\Render\RenderContext[]
File
- core/
lib/ Drupal/ Core/ Render/ Renderer.php, line 96 - Contains \Drupal\Core\Render\Renderer.
Class
- Renderer
- Turns a render array into a HTML string.
Namespace
Drupal\Core\RenderCode
protected static $contextCollection;