Repository: pimcore/pimcore (language: php)

Issue:
[Task]: Remove the deprecated method Image::getThumbnailConfig()
### Improvement description

Please see https://github.com/pimcore/pimcore/pull/15869


Discussion / hints:

Fix patch:
diff --git a/doc/23_Installation_and_Upgrade/09_Upgrade_Notes/README.md b/doc/23_Installation_and_Upgrade/09_Upgrade_Notes/README.md
index 3ca89050fbc..9e6f38325bc 100644
--- a/doc/23_Installation_and_Upgrade/09_Upgrade_Notes/README.md
+++ b/doc/23_Installation_and_Upgrade/09_Upgrade_Notes/README.md
@@ -4,10 +4,10 @@
 #### [Documents]
 - Date Editable: Removed deprecated outputFormat config. Use outputIsoFormat config instead.
 
-
 #### [DataObjects]
 - Removed deprecated `unserialize()` method from `Pimcore\Model\DataObject\Data\Link`. If not the data is not migrated to the new format, to the new default values, please execute a simple script to resave all links.
 - Parameter `$index` of method `setIndex` is not nullable anymore in `Pimcore\Model\DataObject\ClassDefinition\Data`
+- Removed deprecated `getThumbnailConfig()` method from `Pimcore\Model\Asset\Image`.
 
 ## Pimcore 11.6.0
 ### Elements
diff --git a/models/Asset/Image.php b/models/Asset/Image.php
index 583842a4e1f..3f631cf40f1 100644
--- a/models/Asset/Image.php
+++ b/models/Asset/Image.php
@@ -161,28 +161,6 @@ public function getLowQualityPreviewDataUri(): ?string
         return $dataUri;
     }
 
-    /**
-     * Legacy method for backwards compatibility. Use getThumbnail($config)->getConfig() instead.
-     *
-     * @internal
-     *
-     * @deprecated Will be removed in Pimcore 12
-     */
-    public function getThumbnailConfig(array|string|Image\Thumbnail\Config|null $config): ?Image\Thumbnail\Config
-    {
-        trigger_deprecation(
-            'pimcore/pimcore',
-            '11.1',
-            'Using "%s" is deprecated and will be removed in Pimcore 12, use "%s" instead.',
-            __METHOD__,
-            'getThumbnail($config)->getConfig()'
-        );
-
-        $thumbnail = $this->getThumbnail($config);
-
-        return $thumbnail->getConfig();
-    }
-
     /**
      * Returns a path to a given thumbnail or a thumbnail configuration.
      */


Test patch: