public function WithDestination::__construct in Group 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Menu/LocalAction/WithDestination.php \Drupal\group\Plugin\Menu\LocalAction\WithDestination::__construct()
Constructs a WithDestination 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\Routing\RouteProviderInterface $route_provider: The route provider to load routes by name.
\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination.
Overrides LocalActionDefault::__construct
File
- src/
Plugin/ Menu/ LocalAction/ WithDestination.php, line 42
Class
- WithDestination
- Modifies the local action to add a destination.
Namespace
Drupal\group\Plugin\Menu\LocalActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteProviderInterface $route_provider, RedirectDestinationInterface $redirect_destination) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $route_provider);
$this->redirectDestination = $redirect_destination;
}