private static function createChildNavItem($item, $extension_handle)
    {
        if (!isset($item['relative']) || $item['relative'] === true) {
            $link = '/extension/' . $extension_handle . '/' . ltrim($item['link'], '/');
        } else {
            $link = '/' . ltrim($item['link'], '/');
        }

        $nav_item = array(
            'link' => $link,
            'name' => $item['name'],
            'visible' => (isset($item['visible']) && $item['visible'] == 'no') ? 'no' : 'yes',
            'limit' => isset($item['limit']) ? $item['limit'] : null,
            'target' => isset($item['target']) ? $item['target'] : null
        );

        return $nav_item;
    }
private static function createChildNavItem($item, $extension_handle)
    {
        if (!isset($item['relative']) || $item['relative'] === true) {
            $link = '/extension/' . $extension_handle . '/' . ltrim($item['link'], '/');
        } else {
            $link = '/' . ltrim($item['link'], '/');
        }

        $nav_item = array(
            'link' => $link,
            'name' => $item['name'],
            'visible' => (isset($item['visible']) && $item['visible'] == 'no') ? 'no' : 'yes',
            'limit' => isset($item['limit']) ? $item['limit'] : null,
            'target' => isset($item['target']) ? $item['target'] : null
        );

        return $nav_item;
    }
private static function createChildNavItem ( $ item , $ extension_handle ) { if ( ! isset ( $ item [ 'relative' ] ) || $ item [ 'relative' ] === true ) { $ link = '/extension/' . $ extension_handle . '/' . ltrim ( $ item [ 'link' ] , '/' ) ; } else { $ link = '/' . ltrim ( $ item [ 'link' ] , '/' ) ; } $ nav_item = array ( 'link' => $ link , 'name' => $ item [ 'name' ] , 'visible' => ( isset ( $ item [ 'visible' ] ) && $ item [ 'visible' ] == 'no' ) ? 'no' : 'yes' , 'limit' => isset ( $ item [ 'limit' ] ) ? $ item [ 'limit' ] : null , 'target' => isset ( $ item [ 'target' ] ) ? $ item [ 'target' ] : null ) ; return $ nav_item ; }
This function builds out a navigation menu item for children. Children
live under a parent navigation item and are shown on hover.

@since Symphony 2.5.1
@param array $item
@param string $extension_handle
@return array
This function builds out a navigation menu item for children . Children live under a parent navigation item and are shown on hover .