Lavary\Menu\Menu::get PHP Method

get() public method

Return Menu instance from the collection by key
public get ( string $key ) : Item
$key string
return Item
    public function get($key)
    {
        return $this->collection->get($key);
    }

Usage Example

Beispiel #1
0
 /**
  * Return Menu instance from the collection by key
  *
  * @param string $key
  * @return \Lavary\Menu\Item 
  * @static 
  */
 public static function get($key)
 {
     return \Lavary\Menu\Menu::get($key);
 }
All Usage Examples Of Lavary\Menu\Menu::get