W3cubDocs

/Drupal 8

public function RendererInterface::renderPlaceholder

public RendererInterface::renderPlaceholder($placeholder, array $elements)

Renders final HTML for a placeholder.

Renders the placeholder in isolation.

Parameters

string $placeholder: An attached placeholder to render. (This must be a key of one of the values of $elements['#attached']['placeholders'].)

array $elements: The structured array describing the data to be rendered.

Return value

array The updated $elements.

See also

\Drupal\Core\Render\RendererInterface::render()

File

core/lib/Drupal/Core/Render/RendererInterface.php, line 80

Class

RendererInterface
Defines an interface for turning a render array into a string.

Namespace

Drupal\Core\Render

Code

public function renderPlaceholder($placeholder, array $elements);

© 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!RendererInterface.php/function/RendererInterface::renderPlaceholder/8.1.x