public function MegaMenuConfig::setTheme in The Better Mega Menu 8
Same name and namespace in other branches
- 2.x src/Entity/MegaMenuConfig.php \Drupal\tb_megamenu\Entity\MegaMenuConfig::setTheme()
Overrides MegaMenuConfigInterface::setTheme
See also
\Drupal\tb_megamenu\MegaMenuConfigInterface::setTheme()
File
- src/
Entity/ MegaMenuConfig.php, line 106
Class
- MegaMenuConfig
- Defines the Mega Menu Configuration entity.
Namespace
Drupal\tb_megamenu\EntityCode
public function setTheme($themeName) {
if (isset($this->id) && isset($this->menu) && $this->id == $this - menu) {
$this->id = $this->id . '__' . $themeName;
}
$this->theme = $themeName;
}