Renderer::getCurrentRenderContext

protected Renderer::getCurrentRenderContext()

Returns the current render context.

Return value

\Drupal\Core\Render\RenderContext The current render context.

File

core/lib/Drupal/Core/Render/Renderer.php, line 592

Class

Renderer
Turns a render array into a HTML string.

Namespace

Drupal\Core\Render

Code

protected function getCurrentRenderContext() {
  $request = $this->requestStack->getCurrentRequest();
  return isset(static::$contextCollection[$request]) ? static::$contextCollection[$request] : NULL;
}
doc_Drupal
2016-10-29 09:37:35
Comments
Leave a Comment

Please login to continue.