You are here

public function MiconIcon::setAttributes in Micon 8

Same name and namespace in other branches
  1. 2.x 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 142

Class

MiconIcon
Defines the Micon icon.

Namespace

Drupal\micon

Code

public function setAttributes(array $attributes) {
  $this->attributes = new Attribute($attributes);
  return $this;
}