public function getColumnContent($gridField, $record, $columnName) {
        if(!$record->canView()) return;

        $field = GridField_FormAction::create($gridField, 'ExportSingle'.$record->ID, false,
                "exportsingle", array('RecordID' => $record->ID))
            ->addExtraClass('gridfield-button-export-single no-ajax')
            ->setAttribute('title', _t('firebrandhq.EXCELEXPORT', "Export"))
            ->setAttribute('data-icon', 'download-csv');
        return $field->Field();
    }
public function getColumnContent($gridField, $record, $columnName) {
        if(!$record->canView()) return;

        $field = GridField_FormAction::create($gridField, 'ExportSingle'.$record->ID, false,
                "exportsingle", array('RecordID' => $record->ID))
            ->addExtraClass('gridfield-button-export-single no-ajax')
            ->setAttribute('title', _t('firebrandhq.EXCELEXPORT', "Export"))
            ->setAttribute('data-icon', 'download-csv');
        return $field->Field();
    }
public function getColumnContent ( $ gridField , $ record , $ columnName ) { if ( ! $ record -> canView ( ) ) return ; $ field = GridField_FormAction :: create ( $ gridField , 'ExportSingle' . $ record -> ID , false , "exportsingle" , array ( 'RecordID' => $ record -> ID ) ) -> addExtraClass ( 'gridfield-button-export-single no-ajax' ) -> setAttribute ( 'title' , _t ( 'firebrandhq.EXCELEXPORT' , "Export" ) ) -> setAttribute ( 'data-icon' , 'download-csv' ) ; return $ field -> Field ( ) ; }
Return the button to show at the end of the row
@param GridField $gridField
@param DataObject $record
@param string $columnName
@return string - the HTML for the column
Return the button to show at the end of the row