You are here

public function SimpleMegaMenuType::setTargetMenu in Simple Mega Menu 8

Same name and namespace in other branches
  1. 2.0.x 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 80

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;
}