public function LanguageSwitchLinksAlterEvent::__construct in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/core_event_dispatcher/src/Event/Language/LanguageSwitchLinksAlterEvent.php \Drupal\core_event_dispatcher\Event\Language\LanguageSwitchLinksAlterEvent::__construct()
LanguageSwitchLinksAlterEvent constructor.
Parameters
array $links: The links array.
string $type: The language type.
\Drupal\Core\Url $path: The request path.
File
- modules/
core_event_dispatcher/ src/ Event/ Language/ LanguageSwitchLinksAlterEvent.php, line 44
Class
- LanguageSwitchLinksAlterEvent
- Class LanguageSwitchLinksAlterEvent.
Namespace
Drupal\core_event_dispatcher\Event\LanguageCode
public function __construct(array &$links, string $type, Url $path) {
$this->links =& $links;
$this->type = $type;
$this->path = $path;
}