You are here

public function MegaMenuConfig::setMenuConfig 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::setMenuConfig()

Overrides MegaMenuConfigInterface::setMenuConfig

See also

\Drupal\tb_megamenu\MegaMenuConfigInterface::setMenuConfig()

1 call to MegaMenuConfig::setMenuConfig()
MegaMenuConfig::getMenuConfig in src/Entity/MegaMenuConfig.php

File

src/Entity/MegaMenuConfig.php, line 163

Class

MegaMenuConfig
Defines the Mega Menu Configuration entity.

Namespace

Drupal\tb_megamenu\Entity

Code

public function setMenuConfig($menuConfig) {
  $this->menu_config = Json::encode($menuConfig);
}