function RendererInterface::renderPlaceholder

Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/RendererInterface.php \Drupal\Core\Render\RendererInterface::renderPlaceholder()
  2. 8.9.x core/lib/Drupal/Core/Render/RendererInterface.php \Drupal\Core\Render\RendererInterface::renderPlaceholder()
  3. 11.x core/lib/Drupal/Core/Render/RendererInterface.php \Drupal\Core\Render\RendererInterface::renderPlaceholder()

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 88

Class

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

Namespace

Drupal\Core\Render

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.