You are here

public function LanguageSwitchLinksAlterEvent::__construct in Hook Event Dispatcher 8

LanguageSwitchLinksAlterEvent constructor.

Parameters

array $links: The links array.

string $type: The language type.

\Drupal\Core\Url $path: The request path.

File

src/Event/Language/LanguageSwitchLinksAlterEvent.php, line 46

Class

LanguageSwitchLinksAlterEvent
Class LanguageSwitchLinksAlterEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Language

Code

public function __construct(array &$links, $type, Url $path) {
  $this->links =& $links;
  $this->type = $type;
  $this->path = $path;
}