public function col_actions($row) : string {
        global $OUTPUT;

        $actions = [];

        $url = new \moodle_url('/admin/tasklogs.php', ['logid' => $row->id]);

        // Quick view.
        $actions[] = $OUTPUT->action_icon(
            $url,
            new \pix_icon('e/search', get_string('view')),
            new \popup_action('click', $url)
        );

        // Download.
        $actions[] = $OUTPUT->action_icon(
            new \moodle_url($url, ['download' => true]),
            new \pix_icon('t/download', get_string('download'))
        );

        return implode('&nbsp;', $actions);
    }
public function col_actions($row) : string {
        global $OUTPUT;

        $actions = [];

        $url = new \moodle_url('/admin/tasklogs.php', ['logid' => $row->id]);

        // Quick view.
        $actions[] = $OUTPUT->action_icon(
            $url,
            new \pix_icon('e/search', get_string('view')),
            new \popup_action('click', $url)
        );

        // Download.
        $actions[] = $OUTPUT->action_icon(
            new \moodle_url($url, ['download' => true]),
            new \pix_icon('t/download', get_string('download'))
        );

        return implode('&nbsp;', $actions);
    }
public function col_actions ( $ row ) : string { global $ OUTPUT ; $ actions = [ ] ; $ url = new \ moodle_url ( '/admin/tasklogs.php' , [ 'logid' => $ row -> id ] ) ; // Quick view. $ actions [ ] = $ OUTPUT -> action_icon ( $ url , new \ pix_icon ( 'e/search' , get_string ( 'view' ) ) , new \ popup_action ( 'click' , $ url ) ) ; // Download. $ actions [ ] = $ OUTPUT -> action_icon ( new \ moodle_url ( $ url , [ 'download' => true ] ) , new \ pix_icon ( 't/download' , get_string ( 'download' ) ) ) ; return implode ( '&nbsp;' , $ actions ) ; }
Format the actions cell.

@param   \stdClass $row
@return  string
Format the actions cell .