public function MiconIcon::setAttributes in Micon 2.x
Same name and namespace in other branches
- 8 src/MiconIcon.php \Drupal\micon\MiconIcon::setAttributes()
Sets attributes.
Parameters
array $attributes: An attributes array.
Return value
$this
Overrides MiconIconInterface::setAttributes
1 call to MiconIcon::setAttributes()
- MiconIcon::__construct in src/
MiconIcon.php - Constructs a new MiconIcon.
File
- src/
MiconIcon.php, line 149
Class
- MiconIcon
- Defines the Micon icon.
Namespace
Drupal\miconCode
public function setAttributes(array $attributes) {
$this->attributes = new Attribute($attributes);
return $this;
}