public function TBMegaMenuAdminController::getBlockConfig in The Better Mega Menu 8
Same name and namespace in other branches
- 2.x src/Controller/TBMegaMenuAdminController.php \Drupal\tb_megamenu\Controller\TBMegaMenuAdminController::getBlockConfig()
Get an existing block configuration.
Parameters
array $data: A decoded JSON object used to load the configuration.
Return value
mixed An array or null.
1 call to TBMegaMenuAdminController::getBlockConfig()
- TBMegaMenuAdminController::saveMenuConfig in src/
Controller/ TBMegaMenuAdminController.php - Saves a menu configuration.
File
- src/
Controller/ TBMegaMenuAdminController.php, line 342
Class
- TBMegaMenuAdminController
- Handler for configuring and saving MegaMenu settings.
Namespace
Drupal\tb_megamenu\ControllerCode
public function getBlockConfig(array $data) {
return isset($data['block_config']) ? $data['block_config'] : NULL;
}