Plugin.php
Same filename in this branch
- 11.1.x vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php
- 11.1.x vendor/phpstan/extension-installer/src/Plugin.php
- 11.1.x vendor/php-http/discovery/src/Composer/Plugin.php
- 11.1.x vendor/composer/installers/src/Composer/Installers/Plugin.php
- 11.1.x vendor/tbachert/spi/src/Composer/Plugin.php
- 11.1.x composer/Plugin/Scaffold/Plugin.php
- 11.1.x core/lib/Drupal/Component/Annotation/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. |