You are here

public function MenuPositionRule::setMenuLink in Menu Position 8

Sets the menu item.

Return value

string The menu link id.

Overrides MenuPositionRuleInterface::setMenuLink

File

src/Entity/MenuPositionRule.php, line 214

Class

MenuPositionRule
Defines the MenuPositionRule entity.

Namespace

Drupal\menu_position\Entity

Code

public function setMenuLink($menu_link) {
  $this->menu_link = $menu_link;
}