public function getMenu()
    {
        if ($this->_menu === null) {
            $menu = Yii::$app->get('menu', false);
            if ($menu) {
                $this->_menu = $menu;
            } else {
                $this->_menu = false;
            }
        }

        return $this->_menu;
    }
public function getMenu()
    {
        if ($this->_menu === null) {
            $menu = Yii::$app->get('menu', false);
            if ($menu) {
                $this->_menu = $menu;
            } else {
                $this->_menu = false;
            }
        }

        return $this->_menu;
    }
public function getMenu ( ) { if ( $ this -> _menu === null ) { $ menu = Yii :: $ app -> get ( 'menu' , false ) ; if ( $ menu ) { $ this -> _menu = $ menu ; } else { $ this -> _menu = false ; } } return $ this -> _menu ; }
Get the menu component if its registered in the current applications.

The menu component is only registered when the cms module is registered.

@return boolean|\luya\cms\Menu The menu component object or false if not available.
Get the menu component if its registered in the current applications .