You are here

public function RouteParametersWebformSourceEntity::__construct in Webform 8.5

RouteParametersWebformSourceEntity 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\Routing\RouteMatchInterface $route_match: The "current_route_match" service.

Overrides PluginBase::__construct

File

src/Plugin/WebformSourceEntity/RouteParametersWebformSourceEntity.php, line 42

Class

RouteParametersWebformSourceEntity
Detect source entity by examining route parameters.

Namespace

Drupal\webform\Plugin\WebformSourceEntity

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteMatchInterface $route_match) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->routeMatch = $route_match;
}