fix: [helper:bootstrap] Support of string and array for badge's class parameter
parent
819d96e805
commit
8b5bb087e4
|
@ -986,6 +986,7 @@ class BoostrapBadge extends BootstrapGeneric
|
||||||
private function processOptions($options)
|
private function processOptions($options)
|
||||||
{
|
{
|
||||||
$this->options = array_merge($this->defaultOptions, $options);
|
$this->options = array_merge($this->defaultOptions, $options);
|
||||||
|
$this->options['class'] = is_array($this->options['class']) ? $this->options['class'] : [$this->options['class']];
|
||||||
$this->checkOptionValidity();
|
$this->checkOptionValidity();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue