public function action_link($url, $text, component_action $action = null, array $attributes = null, $icon = null) {
        if (!($url instanceof moodle_url)) {
            $url = new moodle_url($url);
        }
        $link = new action_link($url, $text, $action, $attributes, $icon);

        return $this->render($link);
    }
public function action_link($url, $text, component_action $action = null, array $attributes = null, $icon = null) {
        if (!($url instanceof moodle_url)) {
            $url = new moodle_url($url);
        }
        $link = new action_link($url, $text, $action, $attributes, $icon);

        return $this->render($link);
    }
public function action_link ( $ url , $ text , component_action $ action = null , array $ attributes = null , $ icon = null ) { if ( ! ( $ url instanceof moodle_url ) ) { $ url = new moodle_url ( $ url ) ; } $ link = new action_link ( $ url , $ text , $ action , $ attributes , $ icon ) ; return $ this -> render ( $ link ) ; }
Renders a special html link with attached action

Theme developers: DO NOT OVERRIDE! Please override function
{@link core_renderer::render_action_link()} instead.

@param string|moodle_url $url
@param string $text HTML fragment
@param component_action $action
@param array $attributes associative array of html link attributes + disabled
@param pix_icon optional pix icon to render with the link
@return string HTML fragment
Renders a special html link with attached action