You are here

public function ConfigurableActionBase::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Action/ConfigurableActionBase.php \Drupal\Core\Action\ConfigurableActionBase::__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.

Overrides PluginBase::__construct

6 calls to ConfigurableActionBase::__construct()
AssignOwnerNode::__construct in core/modules/node/src/Plugin/Action/AssignOwnerNode.php
Constructs a new AssignOwnerNode action.
ChangeUserRoleBase::__construct in core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
EmailAction::__construct in core/lib/Drupal/Core/Action/Plugin/Action/EmailAction.php
Constructs an EmailAction object.
GotoAction::__construct in core/lib/Drupal/Core/Action/Plugin/Action/GotoAction.php
Constructs a GotoAction object.
MessageAction::__construct in core/lib/Drupal/Core/Action/Plugin/Action/MessageAction.php
Constructs a MessageAction object.

... See full list

6 methods override ConfigurableActionBase::__construct()
AssignOwnerNode::__construct in core/modules/node/src/Plugin/Action/AssignOwnerNode.php
Constructs a new AssignOwnerNode action.
ChangeUserRoleBase::__construct in core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
EmailAction::__construct in core/lib/Drupal/Core/Action/Plugin/Action/EmailAction.php
Constructs an EmailAction object.
GotoAction::__construct in core/lib/Drupal/Core/Action/Plugin/Action/GotoAction.php
Constructs a GotoAction object.
MessageAction::__construct in core/lib/Drupal/Core/Action/Plugin/Action/MessageAction.php
Constructs a MessageAction object.

... See full list

File

core/lib/Drupal/Core/Action/ConfigurableActionBase.php, line 18

Class

ConfigurableActionBase
Provides a base implementation for a configurable Action plugin.

Namespace

Drupal\Core\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this
    ->setConfiguration($configuration);
}