You are here

public function LanguageSwitchLinksAlterEvent::setLinkForLanguage in Hook Event Dispatcher 8

Set the link for a specific language code.

Parameters

string $langcode: The link language code.

array $link: The link path.

File

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

Class

LanguageSwitchLinksAlterEvent
Class LanguageSwitchLinksAlterEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Language

Code

public function setLinkForLanguage($langcode, array $link) {
  $this->links[$langcode] = $link;
}