original_string: protected function setHeader($gridField, $ext)
      {
          $do = singleton($gridField->getModelClass());
  
          Controller::curr()->getResponse()
              ->addHeader(
                  "Content-Disposition",
                  'attachment; filename="' .
                  $do->i18n_plural_name() .
                  '.' . $ext . '"'
              );
      }
code: protected function setHeader($gridField, $ext)
      {
          $do = singleton($gridField->getModelClass());
  
          Controller::curr()->getResponse()
              ->addHeader(
                  "Content-Disposition",
                  'attachment; filename="' .
                  $do->i18n_plural_name() .
                  '.' . $ext . '"'
              );
      }
code_tokens: protected function setHeader ( $ gridField , $ ext ) { $ do = singleton ( $ gridField -> getModelClass ( ) ) ; Controller :: curr ( ) -> getResponse ( ) -> addHeader ( "Content-Disposition" , 'attachment; filename="' . $ do -> i18n_plural_name ( ) . '.' . $ ext . '"' ) ; }
docstring: Set the HTTP header to force a download and set the filename.
  @param GridField $gridField
  @param string $ext Extension to use in the filename.
docstring_tokens: Set the HTTP header to force a download and set the filename .