public function MiconIcon::__construct in Micon 8
Same name and namespace in other branches
- 2.x src/MiconIcon.php \Drupal\micon\MiconIcon::__construct()
Constructs a new MiconIcon.
Parameters
string $type: The type of icon. Either 'font' or 'image'.
array $data: The icon data array provided from the Micon package info file.
array $attributes: The attributes to add to the group wrapper.
File
- src/
MiconIcon.php, line 45
Class
- MiconIcon
- Defines the Micon icon.
Namespace
Drupal\miconCode
public function __construct($type, array $data, array $attributes = []) {
$this->type = $type;
$this->data = $data;
$this
->setAttributes($attributes);
}