function AttributeBase::get
Overrides AttributeInterface::get
2 calls to AttributeBase::get()
- Layout::get in core/
lib/ Drupal/ Core/ Layout/ Attribute/ Layout.php - Gets the value of an attribute.
- Layout::get in core/
lib/ Drupal/ Core/ Layout/ Attribute/ Layout.php - Gets the value of an attribute.
6 methods override AttributeBase::get()
- CKEditor5AspectsOfCKEditor5Plugin::get in core/
modules/ ckeditor5/ src/ Attribute/ CKEditor5AspectsOfCKEditor5Plugin.php - Gets the value of an attribute.
- CKEditor5Plugin::get in core/
modules/ ckeditor5/ src/ Attribute/ CKEditor5Plugin.php - Gets the value of an attribute.
- EntityType::get in core/
lib/ Drupal/ Core/ Entity/ Attribute/ EntityType.php - Gets the value of an attribute.
- Layout::get in core/
lib/ Drupal/ Core/ Layout/ Attribute/ Layout.php - Gets the value of an attribute.
- PluginID::get in core/
lib/ Drupal/ Component/ Plugin/ Attribute/ PluginID.php - Gets the value of an attribute.
File
-
core/
lib/ Drupal/ Component/ Plugin/ Attribute/ AttributeBase.php, line 68
Class
- AttributeBase
- Provides a base class for classed attributes.
Namespace
Drupal\Component\Plugin\AttributeCode
public function get() : array|object {
return array_filter(get_object_vars($this) + [
'class' => $this->getClass(),
'provider' => $this->getProvider(),
], function ($value, $key) {
return !($value === NULL && ($key === 'deriver' || $key === 'provider'));
}, ARRAY_FILTER_USE_BOTH);
}