Skip to content
Snippets Groups Projects
Commit 0d04acba authored by Wade Stewart's avatar Wade Stewart
Browse files

git commit -m 'Issue #3366359 by themodularlab: After installing: error on...

git commit -m 'Issue #3366359 by themodularlab: After installing: error on edit and save changes to the menu'
parent be412a2f
No related branches found
No related tags found
2 merge requests!72git commit -m 'Issue #3366359 by themodularlab: After installing: error on...,!71Issue #3366359 by themodularlab: After installing: error on edit and save changes to the menu
......@@ -190,7 +190,7 @@ class MegaMenuConfig extends ConfigEntityBase implements MegaMenuConfigInterface
* @see \Drupal\tb_megamenu\MegaMenuConfigInterface::setBlockConfig()
*/
public function setBlockConfig(object|array $blockConfig): void {
$this->block_config = Json::encode($blockConfig);
$this->block_config = json_encode($blockConfig, self::JSON_ENCODE_FLAGS);
}
/**
......@@ -199,7 +199,7 @@ class MegaMenuConfig extends ConfigEntityBase implements MegaMenuConfigInterface
* @see \Drupal\tb_megamenu\MegaMenuConfigInterface::setMenuConfig()
*/
public function setMenuConfig(object|array $menuConfig): void {
$this->menu_config = Json::encode($menuConfig);
$this->menu_config = json_encode($menuConfig, self::JSON_ENCODE_FLAGS);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment