I was getting a $value not defined error and indeed the $value is never defined in that method. I also did not understand the $this->attr[ $name ] and figure you probably meant $this->attr['class'].
After this change the class filter works as expected.
I was getting a
$value not defined
error and indeed the $value is never defined in that method. I also did not understand the$this->attr[ $name ]
and figure you probably meant$this->attr['class']
.After this change the class filter works as expected.