class TestAttribute
Same name in this branch
- main core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php \Drupal\Tests\Core\Template\TestAttribute
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php \Drupal\Tests\Core\Template\TestAttribute
- 11.x core/tests/Drupal/Tests/Component/Plugin/Discovery/AttributeBridgeDecoratorTest.php \Drupal\Tests\Component\Plugin\Discovery\TestAttribute
- 10 core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php \Drupal\Tests\Core\Template\TestAttribute
- 10 core/tests/Drupal/Tests/Component/Plugin/Discovery/AttributeBridgeDecoratorTest.php \Drupal\Tests\Component\Plugin\Discovery\TestAttribute
- 9 core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php \Drupal\Tests\Core\Template\TestAttribute
- 8.9.x core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php \Drupal\Tests\Core\Template\TestAttribute
Hierarchy
- class \Drupal\Component\Plugin\Attribute\AttributeBase implements \Drupal\Component\Plugin\Attribute\AttributeInterface
- class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
- class \Drupal\Tests\Component\Plugin\Discovery\TestAttribute extends \Drupal\Component\Plugin\Attribute\Plugin
- class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
Expanded class hierarchy of TestAttribute
File
-
core/
tests/ Drupal/ Tests/ Component/ Plugin/ Discovery/ AttributeBridgeDecoratorTest.php, line 86
Namespace
Drupal\Tests\Component\Plugin\DiscoveryView source
class TestAttribute extends Plugin {
/**
* {@inheritdoc}
*/
public function get() : object {
return new ObjectDefinition(parent::get());
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
|---|---|---|---|---|
| AttributeBase::$class | protected | property | The class used for this attribute class. | |
| AttributeBase::$dependencies | protected | property | The dependencies for the attribute class. | |
| AttributeBase::$provider | protected | property | The provider of the attribute class. | |
| AttributeBase::getClass | public | function | ||
| AttributeBase::getDependencies | public | function | ||
| AttributeBase::getId | public | function | ||
| AttributeBase::getProvider | public | function | ||
| AttributeBase::setClass | public | function | ||
| AttributeBase::setDependencies | public | function | ||
| AttributeBase::setProvider | public | function | ||
| Plugin::__construct | public | function | Constructs a plugin attribute object. | |
| TestAttribute::get | public | function | Gets the value of an attribute. | Overrides AttributeBase::get |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.