You are here

public function Element::renderRoot in Express 8

Renders the final element HTML.

(Cannot be executed within another render context.)

Return value

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

File

themes/contrib/bootstrap/src/Utility/Element.php, line 567
Contains \Drupal\bootstrap\Utility\Element.

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\bootstrap\Utility

Code

public function renderRoot() {

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