You are here

function colossal_menu_update_8001 in Colossal Menu 2.x

Same name and namespace in other branches
  1. 8 colossal_menu.install \colossal_menu_update_8001()

Enable colossal_menu_rest module if rest_menu_tree is enabled.

File

./colossal_menu.install, line 59
Install, update and uninstall functions for the Colossal Menu.

Code

function colossal_menu_update_8001() {
  if (\Drupal::moduleHandler()
    ->moduleExists('rest_menu_tree')) {
    \Drupal::service('module_installer')
      ->install([
      'colossal_menu_rest',
    ], TRUE);
  }
}