You are here

public function OverrideWebformVariant::__construct in Webform 8.5

Constructs a OverrideWebformVariant 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.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

Overrides WebformVariantBase::__construct

File

src/Plugin/WebformVariant/OverrideWebformVariant.php, line 48

Class

OverrideWebformVariant
Webform override variant.

Namespace

Drupal\webform\Plugin\WebformVariant

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, AccountInterface $current_user) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $config_factory);
  $this->currentUser = $current_user;
}