You are here

interface UltimenuTreeInterface in Ultimenu 8.2

Interface for Ultimenu tools.

Hierarchy

Expanded class hierarchy of UltimenuTreeInterface

All classes that implement UltimenuTreeInterface

File

src/UltimenuTreeInterface.php, line 8

Namespace

Drupal\ultimenu
View source
interface UltimenuTreeInterface {

  /**
   * Returns a list of links based on the menu name.
   *
   * @param string $menu_name
   *   The menu name.
   *
   * @return array
   *   An array of the requested menu links.
   */
  public function loadMenuTree($menu_name);

  /**
   * Returns a list of submenu links based on the menu name.
   *
   * @param string $menu_name
   *   The menu name.
   * @param string $link_id
   *   The link ID.
   * @param string $title
   *   The link title.
   *
   * @return array
   *   An array of the requested submenu links.
   */
  public function loadSubMenuTree($menu_name, $link_id, $title = '');

}

Members

Namesort descending Modifiers Type Description Overrides
UltimenuTreeInterface::loadMenuTree public function Returns a list of links based on the menu name. 1
UltimenuTreeInterface::loadSubMenuTree public function Returns a list of submenu links based on the menu name. 1