You are here

public function OpignoMessageThreadsSorting::__construct in Opigno messaging 3.x

Constructs a Handler 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.

Overrides HandlerBase::__construct

File

src/Plugin/views/sort/OpignoMessageThreadsSorting.php, line 46

Class

OpignoMessageThreadsSorting
Custom threads sorting handler: display the current one first, then others.

Namespace

Drupal\opigno_messaging\Plugin\views\sort

Code

public function __construct(RouteMatchInterface $route_match, AccessAwareRouterInterface $router, RequestStack $request_stack, ...$default) {
  parent::__construct(...$default);
  $this->routeMatch = $route_match;
  $this->router = $router;
  $this->request = $request_stack
    ->getCurrentRequest();
}