public function MiconIcon::toMarkup in Micon 8
Same name and namespace in other branches
- 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\miconCode
public function toMarkup() {
$elements = $this
->toRenderable();
return \Drupal::service('renderer')
->render($elements);
}