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

Breadcrumb

  1. Drupal Core 11.1.x
  2. Plugin.php

function Plugin::__construct

Same name in this branch
  1. 11.1.x core/lib/Drupal/Component/Annotation/Plugin.php \Drupal\Component\Annotation\Plugin::__construct()

Constructs a plugin attribute object.

Parameters

string $id: The plugin ID.

class-string|null $deriver: (optional) The deriver class.

Overrides AttributeBase::__construct

47 methods override Plugin::__construct()
Action::__construct in core/lib/Drupal/Core/Action/Attribute/Action.php
Constructs an Action attribute.
Archiver::__construct in core/lib/Drupal/Core/Archiver/Attribute/Archiver.php
Constructs an archiver plugin attribute object.
Block::__construct in core/lib/Drupal/Core/Block/Attribute/Block.php
Constructs a Block attribute.
CKEditor5AspectsOfCKEditor5Plugin::__construct in core/modules/ckeditor5/src/Attribute/CKEditor5AspectsOfCKEditor5Plugin.php
Constructs a CKEditor5AspectsOfCKEditor5Plugin attribute.
CKEditor5Plugin::__construct in core/modules/ckeditor5/src/Attribute/CKEditor5Plugin.php
Constructs a CKEditor5Plugin attribute.

... See full list

File

core/lib/Drupal/Component/Plugin/Attribute/Plugin.php, line 25

Class

Plugin
Defines a Plugin attribute object.

Namespace

Drupal\Component\Plugin\Attribute

Code

public function __construct(string $id, ?string $deriver = NULL) {
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal