You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
];
}
The text was updated successfully, but these errors were encountered:
Screenshot:
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?
The text was updated successfully, but these errors were encountered: