function AttributeBase::setClass
Same name in other branches
- 10 core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php \Drupal\Component\Plugin\Attribute\AttributeBase::setClass()
Overrides AttributeInterface::setClass
1 method overrides AttributeBase::setClass()
- CKEditor5Plugin::setClass in core/
modules/ ckeditor5/ src/ Attribute/ CKEditor5Plugin.php - Sets the class of the attributed class.
File
-
core/
lib/ Drupal/ Component/ Plugin/ Attribute/ AttributeBase.php, line 61
Class
- AttributeBase
- Provides a base class for classed attributes.
Namespace
Drupal\Component\Plugin\AttributeCode
public function setClass(string $class) : void {
$this->class = $class;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.