You are here

public function HasTranslationEvent::setLink in Menu block current language 8

Sets the menu link.

Parameters

\Drupal\Core\Menu\MenuLinkInterface $menu_link: The menu link.

Return value

$this

File

src/Event/HasTranslationEvent.php, line 81

Class

HasTranslationEvent
Translation event.

Namespace

Drupal\menu_block_current_language\Event

Code

public function setLink(MenuLinkInterface $menu_link) {
  $this->link = $menu_link;
  return $this;
}