-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I'm thinking it might be better to not apply empty attributes to the SVG. Would it be possible to only return attributes if they have values?
public function getSvgConfig()
{
// Get the config from the params
$class = $this->getParam('class');
$height = $this->getParam('height');
$width = $this->getParam('width');
// Add the config to an array and return it.
return [
'class' => ((false) ? null : $class),
'height' => ((false) ? null : $height),
'width' => ((false) ? null : $width)
];
}
benfurfie
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working