You are here

public function WebformTestAjaxBlock::__construct in Webform 8.5

Creates a WebformTestAjaxBlock instance.

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\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.

Overrides BlockPluginTrait::__construct

File

tests/modules/webform_test_ajax/src/Plugin/Block/WebformTestAjaxBlock.php, line 53

Class

WebformTestAjaxBlock
Provides a 'webform_test_block_context' block.

Namespace

Drupal\webform_test_ajax\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, RedirectDestinationInterface $redirect_destination) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configFactory = $config_factory;
  $this->redirectDestination = $redirect_destination;
}