public function MiconIconInterface::setAttribute in Micon 8
Same name and namespace in other branches
- 2.x src/MiconIconInterface.php \Drupal\micon\MiconIconInterface::setAttribute()
Sets values for an attribute key.
Parameters
string $attribute: Name of the attribute.
string|array $value: Value(s) to set for the given attribute key.
Return value
$this
1 method overrides MiconIconInterface::setAttribute()
- MiconIcon::setAttribute in src/
MiconIcon.php - Sets values for an attribute key.
File
- src/
MiconIconInterface.php, line 102
Class
- MiconIconInterface
- Defines an object which can be rendered by the Render API.
Namespace
Drupal\miconCode
public function setAttribute($attribute, $value);