public function MiconIcon::addClass in Micon 8
Same name and namespace in other branches
- 2.x src/MiconIcon.php \Drupal\micon\MiconIcon::addClass()
Adds classes or merges them on to array of existing CSS classes.
Parameters
string|array ...: CSS classes to add to the class attribute array.
Return value
$this
Overrides MiconIconInterface::addClass
File
- src/
MiconIcon.php, line 134
Class
- MiconIcon
- Defines the Micon icon.
Namespace
Drupal\miconCode
public function addClass($classes) {
$this->attributes
->addClass($classes);
return $this;
}