src/Bridge/Exporter/AdminExporter.php
public function getAvailableFormats(AdminInterface $admin): array
    {
        $adminExportFormats = $admin->getExportFormats();

        // NEXT_MAJOR : compare with null
        if ($adminExportFormats !== ['json', 'xml', 'csv', 'xls']) {
            return $adminExportFormats;
        }

        return $this->exporter->getAvailableFormats();
    }
public function getAvailableFormats(AdminInterface $admin): array
    {
        $adminExportFormats = $admin->getExportFormats();

        // NEXT_MAJOR : compare with null
        if ($adminExportFormats !== ['json', 'xml', 'csv', 'xls']) {
            return $adminExportFormats;
        }

        return $this->exporter->getAvailableFormats();
    }
public function getAvailableFormats ( AdminInterface $ admin ) : array { $ adminExportFormats = $ admin -> getExportFormats ( ) ; // NEXT_MAJOR : compare with null if ( $ adminExportFormats !== [ 'json' , 'xml' , 'csv' , 'xls' ] ) { return $ adminExportFormats ; } return $ this -> exporter -> getAvailableFormats ( ) ; }
Queries an admin for its default export formats, and falls back on global settings.

@param AdminInterface $admin the current admin object

@return string[] an array of formats
Queries an admin for its default export formats and falls back on global settings .