W3cubDocs

/Drupal 8

class Renderer

Turns a render array into a HTML string.

Hierarchy

File

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

Namespace

Drupal\Core\Render

Members

Name Modifiers Type Description
Renderer::$contextCollection protected static property The render context collection.
Renderer::$controllerResolver protected property The controller resolver.
Renderer::$elementInfo protected property The element info.
Renderer::$isRenderingRoot protected property Whether we're currently in a ::renderRoot() call.
Renderer::$placeholderGenerator protected property The placeholder generator.
Renderer::$renderCache protected property The render cache service.
Renderer::$rendererConfig protected property The renderer configuration array.
Renderer::$requestStack protected property The request stack.
Renderer::$theme protected property The theme manager.
Renderer::addCacheableDependency public function Adds a dependency on an object: merges its cacheability metadata. Overrides RendererInterface::addCacheableDependency
Renderer::doRender protected function See the docs for ::render().
Renderer::ensureMarkupIsSafe protected function Escapes #plain_text or filters #markup as required.
Renderer::executeInRenderContext public function Executes a callable within a render context. Overrides RendererInterface::executeInRenderContext
Renderer::getCurrentRenderContext protected function Returns the current render context.
Renderer::hasRenderContext public function Checks whether a render context is active. Overrides RendererInterface::hasRenderContext
Renderer::mergeBubbleableMetadata public function Merges the bubbleable rendering metadata o/t 2nd render array with the 1st. Overrides RendererInterface::mergeBubbleableMetadata
Renderer::render public function Renders HTML given a structured array tree. Overrides RendererInterface::render
Renderer::renderPlaceholder public function Renders final HTML for a placeholder. Overrides RendererInterface::renderPlaceholder
Renderer::renderPlain public function Renders final HTML in situations where no assets are needed. Overrides RendererInterface::renderPlain
Renderer::renderRoot public function Renders final HTML given a structured array tree. Overrides RendererInterface::renderRoot
Renderer::replacePlaceholders protected function Replaces placeholders.
Renderer::setCurrentRenderContext protected function Sets the current render context.
Renderer::xssFilterAdminIfUnsafe protected function Applies a very permissive XSS/HTML filter for admin-only use.
Renderer::__construct public function Constructs a new Renderer.

© 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!Renderer.php/class/Renderer/8.1.x