public function col_type($row) : string {
        if (\core\task\database_logger::TYPE_SCHEDULED == $row->type) {
            return get_string('task_type:scheduled', 'admin');
        } else {
            return get_string('task_type:adhoc', 'admin');
        }
    }
public function col_type($row) : string {
        if (\core\task\database_logger::TYPE_SCHEDULED == $row->type) {
            return get_string('task_type:scheduled', 'admin');
        } else {
            return get_string('task_type:adhoc', 'admin');
        }
    }
public function col_type ( $ row ) : string { if ( \ core \ task \ database_logger :: TYPE_SCHEDULED == $ row -> type ) { return get_string ( 'task_type:scheduled' , 'admin' ) ; } else { return get_string ( 'task_type:adhoc' , 'admin' ) ; } }
Format the type cell.

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