public function action() {
        if ($this->action instanceof moodle_url) {
            return $this->action;
        } else if ($this->action instanceof action_link) {
            return $this->action->url;
        }
        return $this->action;
    }
public function action() {
        if ($this->action instanceof moodle_url) {
            return $this->action;
        } else if ($this->action instanceof action_link) {
            return $this->action->url;
        }
        return $this->action;
    }
public function action ( ) { if ( $ this -> action instanceof moodle_url ) { return $ this -> action ; } else if ( $ this -> action instanceof action_link ) { return $ this -> action -> url ; } return $ this -> action ; }
Get the action url for this navigation node.
Called from templates.

@since Moodle 3.2
Get the action url for this navigation node . Called from templates .