You are here

public function CheeseburgerMenu::identifyOldConfig in Cheeseburger Menu 8.4

Searches for some old config keys.

1 call to CheeseburgerMenu::identifyOldConfig()
CheeseburgerMenu::build in src/Plugin/Block/CheeseburgerMenu.php
Building block.

File

src/Plugin/Block/CheeseburgerMenu.php, line 552
Cheeseburger class extends BlockBase.

Class

CheeseburgerMenu
Block info.

Namespace

Drupal\cheeseburger_menu\Plugin\Block

Code

public function identifyOldConfig($config) {
  $old_config_elements = [
    'menus_appear',
    'taxonomy_appear',
    'menus_weight',
    'taxonomy_weight',
  ];
  foreach ($old_config_elements as $old_config_element) {
    if (!array_key_exists($old_config_element, $config)) {
      return FALSE;
    }
  }
  return TRUE;
}