protected function getFilenameArray()
    {
        $table = DataObject::singleton(File::class)->baseTable();
        // Convert original query, ensuring the legacy "Filename" is included in the result
        /** @skipUpgrade */
        return $this
            ->getFileQuery()
            ->dataQuery()
            ->selectFromTable($table, ['ID', 'Filename'])
            ->execute()
            ->map(); // map ID to Filename
    }
protected function getFilenameArray()
    {
        $table = DataObject::singleton(File::class)->baseTable();
        // Convert original query, ensuring the legacy "Filename" is included in the result
        /** @skipUpgrade */
        return $this
            ->getFileQuery()
            ->dataQuery()
            ->selectFromTable($table, ['ID', 'Filename'])
            ->execute()
            ->map(); // map ID to Filename
    }
protected function getFilenameArray ( ) { $ table = DataObject :: singleton ( File :: class ) -> baseTable ( ) ; // Convert original query, ensuring the legacy "Filename" is included in the result /** @skipUpgrade */ return $ this -> getFileQuery ( ) -> dataQuery ( ) -> selectFromTable ( $ table , [ 'ID' , 'Filename' ] ) -> execute ( ) -> map ( ) ; // map ID to Filename }
Get map of File IDs to legacy filenames

@deprecated 4.4.0
@return array
@throws \Exception
Get map of File IDs to legacy filenames