You are here

interface FootermapInterface in footermap: a footer site map 8

Interface for Footermap clasess.

Hierarchy

Expanded class hierarchy of FootermapInterface

All classes that implement FootermapInterface

File

src/Plugin/Block/FootermapInterface.php, line 8

Namespace

Drupal\footermap\Plugin\Block
View source
interface FootermapInterface {

  /**
   * Build content for footer site map.
   *
   * The default implementation should call buildMenu() recursively.
   *
   * This deprecates footermap_render().
   *
   * @return array
   *   An associative array ready for render system.
   *
   * @todo The return value may change by the time Drupal 8 is released.
   *
   * @see Drupal\footermap\Plugin\Block\Footermap::buildMenu()
   */
  public function buildMap();

  /**
   * Recursively build footer site map.
   *
   * This method should modify the object variable $mapref.
   *
   * This deprecates footermap_get_menu().
   *
   * @param array &$tree
   *   A reference to the menu site tree for a particular menu.
   * @param array &$mapref
   *   A reference to the current menu item's children or the root of the map.
   */
  public function buildMenu(array &$tree, array &$mapref);

}

Members

Namesort descending Modifiers Type Description Overrides
FootermapInterface::buildMap public function Build content for footer site map. 1
FootermapInterface::buildMenu public function Recursively build footer site map. 1