You are here

public function Element::render in Express 8

Renders the final element HTML.

Return value

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

File

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

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\bootstrap\Utility

Code

public function render() {

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