Plugin.php
Same filename in this branch
Same filename in other branches
- 9 composer/Plugin/Scaffold/Plugin.php
- 9 core/lib/Drupal/Component/Annotation/Plugin.php
- 8.9.x composer/Plugin/Scaffold/Plugin.php
- 8.9.x core/lib/Drupal/Component/Annotation/Plugin.php
- 10 composer/Plugin/Scaffold/Plugin.php
- 10 core/lib/Drupal/Component/Annotation/Plugin.php
- 10 core/lib/Drupal/Component/Plugin/Attribute/Plugin.php
Namespace
Drupal\Component\Plugin\AttributeFile
-
core/
lib/ Drupal/ Component/ Plugin/ Attribute/ Plugin.php
View source
<?php
namespace Drupal\Component\Plugin\Attribute;
/**
* Defines a Plugin attribute object.
*
* Attributes in plugin classes can use this class in order to pass various
* metadata about the plugin through the parser to
* DiscoveryInterface::getDefinitions() calls.
*
* @ingroup plugin_api
*/
class Plugin extends AttributeBase {
/**
* Constructs a plugin attribute object.
*
* @param string $id
* The plugin ID.
* @param class-string|null $deriver
* (optional) The deriver class.
*/
public function __construct(string $id, ?string $deriver = NULL) {
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
Plugin | Defines a Plugin attribute object. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.