You are here

public function Webform::__construct in Webform 8.5

Creates a new Webform instance.

Parameters

array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The entity storage.

\Drupal\webform\WebformEntityReferenceManagerInterface $webform_entity_reference_manager: The webform entity reference manager.

Overrides ConditionPluginBase::__construct

File

src/Plugin/Condition/Webform.php, line 59

Class

Webform
Provides a 'Webform' condition.

Namespace

Drupal\webform\Plugin\Condition

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $entity_storage, WebformEntityReferenceManagerInterface $webform_entity_reference_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityStorage = $entity_storage;
  $this->webformEntityReferenceManager = $webform_entity_reference_manager;
}