function AttributeBase::getId

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php \Drupal\Component\Plugin\Attribute\AttributeBase::getId()

Overrides AttributeInterface::getId

1 call to AttributeBase::getId()
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 47

Class

AttributeBase
Provides a base class for classed attributes.

Namespace

Drupal\Component\Plugin\Attribute

Code

public function getId() : string {
    return $this->id;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.