You are here

public function MiconIcon::toMarkup in Micon 8

Same name and namespace in other branches
  1. 2.x src/MiconIcon.php \Drupal\micon\MiconIcon::toMarkup()

Returns a fully rendered Markup representation of the object.

Return value

\Drupal\Core\Render\Markup A Markup object.

Overrides MiconIconInterface::toMarkup

File

src/MiconIcon.php, line 169

Class

MiconIcon
Defines the Micon icon.

Namespace

Drupal\micon

Code

public function toMarkup() {
  $elements = $this
    ->toRenderable();
  return \Drupal::service('renderer')
    ->render($elements);
}