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

Breadcrumb

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

function PluginBase::__construct

Same name in this branch
  1. 11.1.x core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

10 calls to PluginBase::__construct()
IconExtractorWithFinder::__construct in core/lib/Drupal/Core/Theme/Icon/IconExtractorWithFinder.php
Constructs a IconExtractorWithFinder object.
IconExtractorWithFinder::__construct in core/lib/Drupal/Core/Theme/Icon/IconExtractorWithFinder.php
Constructs a IconExtractorWithFinder object.
LocalActionDefault::__construct in core/lib/Drupal/Core/Menu/LocalActionDefault.php
Constructs a LocalActionDefault object.
LocalActionDefault::__construct in core/lib/Drupal/Core/Menu/LocalActionDefault.php
Constructs a LocalActionDefault object.
PageActions::__construct in core/modules/navigation/src/Plugin/TopBarItem/PageActions.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

... See full list

5 methods override PluginBase::__construct()
IconExtractorWithFinder::__construct in core/lib/Drupal/Core/Theme/Icon/IconExtractorWithFinder.php
Constructs a IconExtractorWithFinder object.
LocalActionDefault::__construct in core/lib/Drupal/Core/Menu/LocalActionDefault.php
Constructs a LocalActionDefault object.
PageActions::__construct in core/modules/navigation/src/Plugin/TopBarItem/PageActions.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
UnapprovedComments::__construct in core/modules/comment/src/Plugin/Menu/LocalTask/UnapprovedComments.php
Construct the UnapprovedComments object.
WorkflowTypeBase::__construct in core/modules/workflows/src/Plugin/WorkflowTypeBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

core/lib/Drupal/Component/Plugin/PluginBase.php, line 53

Class

PluginBase
Base class for plugins wishing to support metadata inspection.

Namespace

Drupal\Component\Plugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
    $this->configuration = $configuration;
    $this->pluginId = $plugin_id;
    $this->pluginDefinition = $plugin_definition;
}

API Navigation

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