class PluginExample
Same name in this branch
- 10 core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php \Drupal\plugin_test\Plugin\Annotation\PluginExample
Same name in other branches
- 9 core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php \Drupal\plugin_test\Plugin\Annotation\PluginExample
- 8.9.x core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php \Drupal\plugin_test\Plugin\Annotation\PluginExample
- 11.x core/modules/system/tests/modules/plugin_test/src/Plugin/Attribute/PluginExample.php \Drupal\plugin_test\Plugin\Attribute\PluginExample
- 11.x core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php \Drupal\plugin_test\Plugin\Annotation\PluginExample
Defines a custom PluginExample attribute.
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\plugin_test\Plugin\Attribute\PluginExample extends \Drupal\Component\Plugin\Attribute\Plugin
- class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
Expanded class hierarchy of PluginExample
2 files declare their use of PluginExample
- DefaultPluginManagerTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Plugin/ DefaultPluginManagerTest.php - Example3.php in core/
modules/ system/ tests/ modules/ plugin_test/ src/ Plugin/ plugin_test/ custom_annotation/ Example3.php
File
-
core/
modules/ system/ tests/ modules/ plugin_test/ src/ Plugin/ Attribute/ PluginExample.php, line 10
Namespace
Drupal\plugin_test\Plugin\AttributeView source
class PluginExample extends Plugin {
/**
* Constructs a PluginExample attribute.
*
* @param string $id
* The plugin ID.
* @param string $custom
* Some other sample plugin metadata.
*/
public function __construct(string $id, ?string $custom = NULL) {
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
AttributeBase::$class | protected | property | The class used for this attribute class. | ||
AttributeBase::$provider | protected | property | The provider of the attribute class. | ||
AttributeBase::get | public | function | Gets the value of an attribute. | Overrides AttributeInterface::get | 6 |
AttributeBase::getClass | public | function | Gets the class of the attribute class. | Overrides AttributeInterface::getClass | 1 |
AttributeBase::getId | public | function | Gets the unique ID for this attribute class. | Overrides AttributeInterface::getId | |
AttributeBase::getProvider | public | function | Gets the name of the provider of the attribute class. | Overrides AttributeInterface::getProvider | |
AttributeBase::setClass | public | function | Sets the class of the attributed class. | Overrides AttributeInterface::setClass | 1 |
AttributeBase::setProvider | public | function | Sets the name of the provider of the attribute class. | Overrides AttributeInterface::setProvider | |
PluginExample::__construct | public | function | Constructs a PluginExample attribute. | Overrides Plugin::__construct |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.