function AttributeBase::get
Gets the value of an attribute.
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.
- TestAttribute::get in core/tests/ Drupal/ Tests/ Component/ Plugin/ Discovery/ AttributeBridgeDecoratorTest.php 
- Gets the value of an attribute.
7 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 93 
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 && in_array($key, [
      'deriver',
      'provider',
      'dependencies',
    ]));
  }, ARRAY_FILTER_USE_BOTH);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
