Function __global->_build_stored_menu_branch

Definitions

sources/menus.php

  • Build a menu branch map from a database row.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$item array No No required parameter N/A N/A The database row
$items array No No required parameter N/A N/A List of all the database rows for this menu

Returns

  • A list of menu branches
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Build a menu branch map from a database row.
 *
 * @param  array $item The database row
 * @param  array $items List of all the database rows for this menu
 * @return array A list of menu branches
 */

function _build_stored_menu_branch(array $item, array $items) : array