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