public function CheeseburgerMenu::validateConfiguration in Cheeseburger Menu 8.4
Validates all config.
1 call to CheeseburgerMenu::validateConfiguration()
- CheeseburgerMenu::build in src/
Plugin/ Block/ CheeseburgerMenu.php - Building block.
File
- src/
Plugin/ Block/ CheeseburgerMenu.php, line 535 - Cheeseburger class extends BlockBase.
Class
- CheeseburgerMenu
- Block info.
Namespace
Drupal\cheeseburger_menu\Plugin\BlockCode
public function validateConfiguration($config) {
$new_config_elements = [
'menu',
'taxonomy_vocabulary',
];
foreach ($new_config_elements as $new_config_element) {
if (!array_key_exists($new_config_element, $config)) {
return FALSE;
}
}
return TRUE;
}