Presenter Output
This section will show you how to use the decorated value provided by the \Anomaly\IconFieldType\IconFieldTypePresenter
class.
IconFieldTypePresenter::html()
The html
method returns the icon HTML.
Returns: string
Example
$decorated->example->html();
{{ decorated.example.html()|raw }}
An optional $attributes
parameter can also be passed:
$decorated->example->html([
'class' => 'appended-class',
'data-toggle' => 'modal',
]);
{{ decorated.example.html({
'class': 'appended-class',
'data-toggle': 'modal',
})|raw }}