You are here

public function SimpleMegaMenuType::setTargetMenu in Simple Mega Menu 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/SimpleMegaMenuType.php \Drupal\simple_megamenu\Entity\SimpleMegaMenuType::setTargetMenu()

Sets the target menus.

Parameters

array $target_menu: The target menus.

Return value

\Drupal\simple_megamenu\Entity\SimpleMegaMenuTypeInterface The SimpleMegaMenuType.

Overrides SimpleMegaMenuTypeInterface::setTargetMenu

File

src/Entity/SimpleMegaMenuType.php, line 79

Class

SimpleMegaMenuType
Defines the Simple mega menu type entity.

Namespace

Drupal\simple_megamenu\Entity

Code

public function setTargetMenu($target_menu) {
  $this->targetMenu = $target_menu;
  return $this;
}