public function MiconIcon::toRenderable in Micon 8
Same name and namespace in other branches
- 2.x src/MiconIcon.php \Drupal\micon\MiconIcon::toRenderable()
Returns a render array representation of the object.
Return value
mixed[] A render array.
Overrides MiconIconInterface::toRenderable
1 call to MiconIcon::toRenderable()
- MiconIcon::toMarkup in src/
MiconIcon.php - Returns a fully rendered Markup representation of the object.
File
- src/
MiconIcon.php, line 158
Class
- MiconIcon
- Defines the Micon icon.
Namespace
Drupal\miconCode
public function toRenderable() {
return [
'#theme' => 'micon_icon',
'#icon' => $this,
'#attributes' => $this->attributes
->toArray(),
];
}