You are here

public function QueryStringWebformSourceEntity::__construct in Webform 8.5

QueryStringWebformSourceEntity constructor.

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\Entity\EntityTypeManagerInterface $entity_type_manager: The "entity_type.manager" service.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The "current_route_match" service.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The "request_stack" service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The "language_manager" service.

\Drupal\webform\WebformEntityReferenceManagerInterface $webform_entity_reference_manager: The "webform.entity_reference_manager" service.

Overrides PluginBase::__construct

File

src/Plugin/WebformSourceEntity/QueryStringWebformSourceEntity.php, line 83

Class

QueryStringWebformSourceEntity
Detect source entity by examining query string.

Namespace

Drupal\webform\Plugin\WebformSourceEntity

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, RouteMatchInterface $route_match, RequestStack $request_stack, LanguageManagerInterface $language_manager, WebformEntityReferenceManagerInterface $webform_entity_reference_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->routeMatch = $route_match;
  $this->request = $request_stack
    ->getCurrentRequest();
  $this->languageManager = $language_manager;
  $this->webformEntityReferenceManager = $webform_entity_reference_manager;
}