You are here

bigmenu.module in Big Menu 8

Same filename and directory in other branches
  1. 6 bigmenu.module
  2. 7 bigmenu.module
  3. 2.x bigmenu.module

Alternative to core menu management.

Needed when menus get too big to load on one page.

File

bigmenu.module
View source
<?php

/**
 * @file
 * Alternative to core menu management.
 *
 * Needed when menus get too big to load on one page.
 */
use Drupal\bigmenu\BigMenuForm;

/**
 * Implements hook_entity_type_alter().
 */
function bigmenu_entity_type_alter(array &$entity_types) {

  /** @var \Drupal\Core\Entity\EntityTypeInterface[] $entity_types */
  $entity_types['menu']
    ->setFormClass('edit', BigMenuForm::class);
}

Functions