You are here

public function ConfigurableActionBase::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Action/ConfigurableActionBase.php \Drupal\Core\Action\ConfigurableActionBase::__construct()
  2. 9 core/lib/Drupal/Core/Action/ConfigurableActionBase.php \Drupal\Core\Action\ConfigurableActionBase::__construct()

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);
}