public function MiconIconInterface::setAttribute in Micon 2.x
Same name and namespace in other branches
- 8 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 110
Class
- MiconIconInterface
- Defines an object which can be rendered by the Render API.
Namespace
Drupal\miconCode
public function setAttribute($attribute, $value);