Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Plugin.php

Same filename in this branch
  1. 11.1.x vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php
  2. 11.1.x vendor/phpstan/extension-installer/src/Plugin.php
  3. 11.1.x vendor/php-http/discovery/src/Composer/Plugin.php
  4. 11.1.x vendor/composer/installers/src/Composer/Installers/Plugin.php
  5. 11.1.x vendor/tbachert/spi/src/Composer/Plugin.php
  6. 11.1.x composer/Plugin/Scaffold/Plugin.php
  7. 11.1.x core/lib/Drupal/Component/Annotation/Plugin.php

Namespace

Drupal\Component\Plugin\Attribute

File

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.
RSS feed
Powered by Drupal