function public function Element::renderPlain

8.x-3.x Element.php public Element::renderPlain()

Renders the final element HTML.

Return value

\Drupal\Component\Render\MarkupInterface The rendered HTML.

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\bootstrap\Utility

Source src/Utility/Element.php (line 647)

public function renderPlain() {
  /** @var \Drupal\Core\Render\Renderer $renderer */
  $renderer = \Drupal::service('renderer');
  return $renderer->renderPlain($this->array);
}