You are here

public function AdminRoutes::__construct in Administration Language Negotiation 8

AdminRoutes constructor.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Routing\Router $router: The router.

\Drupal\Core\Routing\AdminContext $admin_context: The admin context.

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

Overrides ConditionPluginBase::__construct

File

src/Plugin/AdministrationLanguageNegotiationCondition/AdminRoutes.php, line 68

Class

AdminRoutes
Class for the Blacklisted paths condition plugin.

Namespace

Drupal\administration_language_negotiation\Plugin\AdministrationLanguageNegotiationCondition

Code

public function __construct(RequestStack $request_stack, Router $router, AdminContext $admin_context, array $configuration, $plugin_id, array $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->requestStack = $request_stack;
  $this->router = $router;
  $this->adminContext = $admin_context;
}