public function addAskPage($label)
    {
        $page = $this->addPage($label, null, 'ask');

        // Routes for token controller
        $page->addAction(null, null, 'forward');
        $page->addAction(null, null, 'return');
        $page->addAction(null, null, 'to-survey')->setModelParameters(1);
        $page->addAction(null, null, 'token');

        return $page;
    }
public function addAskPage($label)
    {
        $page = $this->addPage($label, null, 'ask');

        // Routes for token controller
        $page->addAction(null, null, 'forward');
        $page->addAction(null, null, 'return');
        $page->addAction(null, null, 'to-survey')->setModelParameters(1);
        $page->addAction(null, null, 'token');

        return $page;
    }
public function addAskPage ( $ label ) { $ page = $ this -> addPage ( $ label , null , 'ask' ) ; // Routes for token controller $ page -> addAction ( null , null , 'forward' ) ; $ page -> addAction ( null , null , 'return' ) ; $ page -> addAction ( null , null , 'to-survey' ) -> setModelParameters ( 1 ) ; $ page -> addAction ( null , null , 'token' ) ; return $ page ; }
Shortcut function to create a ask menu, with hidden options.

This function is in \Gems_Menu instead of AbstractMenu because
you should ALWAYS put this menu in the root menu.

@param string $label Label for the whole menu
Shortcut function to create a ask menu with hidden options .