protected function getAction($key)
    {
        $action = $this->request->route()->getAction();

        return isset($action[$key]) ? $action[$key] : false;
    }
protected function getAction($key)
    {
        $action = $this->request->route()->getAction();

        return isset($action[$key]) ? $action[$key] : false;
    }
protected function getAction ( $ key ) { $ action = $ this -> request -> route ( ) -> getAction ( ) ; return isset ( $ action [ $ key ] ) ? $ action [ $ key ] : false ; }
Extract required action from requested route.

@param string $key action name
@return string
Extract required action from requested route .