src/Forms/GridField/GridFieldPrintButton.php
public function handlePrint($gridField, $request = null)
    {
        set_time_limit(60);
        Requirements::clear();

        $data = $this->generatePrintData($gridField);

        $this->extend('updatePrintData', $data);

        if ($data) {
            return $data->renderWith([
                get_class($gridField) . '_print',
                GridField::class . '_print',
            ]);
        }

        return null;
    }
public function handlePrint($gridField, $request = null)
    {
        set_time_limit(60);
        Requirements::clear();

        $data = $this->generatePrintData($gridField);

        $this->extend('updatePrintData', $data);

        if ($data) {
            return $data->renderWith([
                get_class($gridField) . '_print',
                GridField::class . '_print',
            ]);
        }

        return null;
    }
public function handlePrint ( $ gridField , $ request = null ) { set_time_limit ( 60 ) ; Requirements :: clear ( ) ; $ data = $ this -> generatePrintData ( $ gridField ) ; $ this -> extend ( 'updatePrintData' , $ data ) ; if ( $ data ) { return $ data -> renderWith ( [ get_class ( $ gridField ) . '_print' , GridField :: class . '_print' , ] ) ; } return null ; }
Handle the print, for both the action button and the URL

@param GridField $gridField
@param HTTPRequest $request
@return DBHTMLText
Handle the print for both the action button and the URL