lib/private/NavigationManager.php
/**
	 * Creates a new navigation entry
	 *
	 * @param array|\Closure $entry Array containing: id, name, order, icon and href key
	 *					The use of a closure is preferred, because it will avoid
	 * 					loading the routing of your app, unless required.
	 * @return void
	 */
Creates a new navigation entry
@param array|\Closure $entry Array containing: id, name, order, icon and href key
The use of a closure is preferred, because it will avoid
loading the routing of your app, unless required.
@return void
Creates a new navigation entry @param array| \ Closure $entry Array containing : id name order icon and href key The use of a closure is preferred because it will avoid loading the routing of your app unless required . @return void
public function add($entry) {
		if ($entry instanceof \Closure) {
			$this->closureEntries[] = $entry;
			return;
		}
		$entry['active'] = false;
		if(!isset($entry['icon'])) {
			$entry['icon'] = '';
		}
		if(!isset($entry['type'])) {
			$entry['type'] = 'link';
		}
		$this->entries[] = $entry;
	}
public function add ( $ entry ) { if ( $ entry instanceof \ Closure ) { $ this -> closureEntries [ ] = $ entry ; return ; } $ entry [ 'active' ] = false ; if ( ! isset ( $ entry [ 'icon' ] ) ) { $ entry [ 'icon' ] = '' ; } if ( ! isset ( $ entry [ 'type' ] ) ) { $ entry [ 'type' ] = 'link' ; } $ this -> entries [ ] = $ entry ; }
Creates a new navigation entry
 @param array|\Closure $entry Array containing: id, name, order, icon and href key
                                      The use of a closure is preferred, because it will avoid
                                      loading the routing of your app, unless required.
Creates a new navigation entry @param array| \ Closure $entry Array containing : id name order icon and href key The use of a closure is preferred because it will avoid loading the routing of your app unless required .