function WorkflowTypeBase::__construct

Same name and namespace in other branches
  1. 9 core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::__construct()
  2. 10 core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::__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

1 call to WorkflowTypeBase::__construct()
ContentModeration::__construct in core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php
Constructs a ContentModeration object.
1 method overrides WorkflowTypeBase::__construct()
ContentModeration::__construct in core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php
Constructs a ContentModeration object.

File

core/modules/workflows/src/Plugin/WorkflowTypeBase.php, line 31

Class

WorkflowTypeBase
A base class for Workflow type plugins.

Namespace

Drupal\workflows\Plugin

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.