You are here

public function WebformSubmissionLimitBlock::__construct in Webform 8.5

Creates a WebformSubmissionLimitBlock 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\Session\AccountInterface $account: The current user.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\webform\WebformRequestInterface $request_handler: The webform request handler.

\Drupal\webform\WebformTokenManagerInterface $token_manager: The webform token manager.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/WebformSubmissionLimitBlock.php, line 89

Class

WebformSubmissionLimitBlock
Provides a 'Webform submission limit' block.

Namespace

Drupal\webform\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountInterface $account, EntityTypeManagerInterface $entity_type_manager, WebformRequestInterface $request_handler, WebformTokenManagerInterface $token_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->currentUser = $account;
  $this->entityTypeManager = $entity_type_manager;
  $this->requestHandler = $request_handler;
  $this->tokenManager = $token_manager;
}