You are here

public function MegaMenuConfig::setMenu in The Better Mega Menu 8

Same name and namespace in other branches
  1. 2.x src/Entity/MegaMenuConfig.php \Drupal\tb_megamenu\Entity\MegaMenuConfig::setMenu()

Overrides MegaMenuConfigInterface::setMenu

See also

\Drupal\tb_megamenu\MegaMenuConfigInterface::setMenu()

File

src/Entity/MegaMenuConfig.php, line 94

Class

MegaMenuConfig
Defines the Mega Menu Configuration entity.

Namespace

Drupal\tb_megamenu\Entity

Code

public function setMenu($menuName) {
  if (!isset($this->id)) {
    $this->id = $menuName;
  }
  $this->menu = $menuName;
}