public static function getExtensionConfig(): array
    {
        $supportedMimeTypes = self::DEFAULT_SUPPORTED_MIME_TYPES;
        $desktopWidth = self::DEFAULT_DESKTOP_WIDTH;
        $tabletWidth = self::DEFAULT_TABLET_WIDTH;
        $smartphoneWidth = self::DEFAULT_SMARTPHONE_WIDTH;

        if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['responsive_images'])) {
            $supportedMimeTypes = $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['responsive_images']['supportedMimeTypes'] ?? self::DEFAULT_SUPPORTED_MIME_TYPES;
            $desktopWidth = (int)$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['responsive_images']['maxDesktopImageWidth'] ?? self::DEFAULT_DESKTOP_WIDTH;
            $tabletWidth = (int)$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['responsive_images']['maxTabletImageWidth'] ?? self::DEFAULT_TABLET_WIDTH;
            $smartphoneWidth = (int)$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['responsive_images']['maxSmartphoneImageWidth'] ?? self::DEFAULT_SMARTPHONE_WIDTH;
        } elseif (isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['responsive_images'])) {
            try {
                $extConfig = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['responsive_images']);

                if (!empty($extConfig['supportedMimeTypes'])) {
                    $supportedMimeTypes = $extConfig['supportedMimeTypes'];
                }

                if (isset($extConfig['maxDesktopImageWidth']) && is_numeric($extConfig['maxDesktopImageWidth'])) {
                    $desktopWidth = (int)$extConfig['maxDesktopImageWidth'];
                }

                if (isset($extConfig['maxTabletImageWidth']) && is_numeric($extConfig['maxTabletImageWidth'])) {
                    $tabletWidth = (int)$extConfig['maxTabletImageWidth'];
                }

                if (isset($extConfig['maxSmartphoneImageWidth']) && is_numeric($extConfig['maxSmartphoneImageWidth'])) {
                    $smartphoneWidth = (int)$extConfig['maxSmartphoneImageWidth'];
                }
            } catch (\Exception $e) {
            }
        }

        return [
            'supportedMimeTypes' => $supportedMimeTypes,
            'maxDesktopImageWidth' => $desktopWidth,
            'maxTabletImageWidth' => $tabletWidth,
            'maxSmartphoneImageWidth' => $smartphoneWidth,
        ];
    }
public static function getExtensionConfig(): array
    {
        $supportedMimeTypes = self::DEFAULT_SUPPORTED_MIME_TYPES;
        $desktopWidth = self::DEFAULT_DESKTOP_WIDTH;
        $tabletWidth = self::DEFAULT_TABLET_WIDTH;
        $smartphoneWidth = self::DEFAULT_SMARTPHONE_WIDTH;

        if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['responsive_images'])) {
            $supportedMimeTypes = $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['responsive_images']['supportedMimeTypes'] ?? self::DEFAULT_SUPPORTED_MIME_TYPES;
            $desktopWidth = (int)$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['responsive_images']['maxDesktopImageWidth'] ?? self::DEFAULT_DESKTOP_WIDTH;
            $tabletWidth = (int)$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['responsive_images']['maxTabletImageWidth'] ?? self::DEFAULT_TABLET_WIDTH;
            $smartphoneWidth = (int)$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['responsive_images']['maxSmartphoneImageWidth'] ?? self::DEFAULT_SMARTPHONE_WIDTH;
        } elseif (isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['responsive_images'])) {
            try {
                $extConfig = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['responsive_images']);

                if (!empty($extConfig['supportedMimeTypes'])) {
                    $supportedMimeTypes = $extConfig['supportedMimeTypes'];
                }

                if (isset($extConfig['maxDesktopImageWidth']) && is_numeric($extConfig['maxDesktopImageWidth'])) {
                    $desktopWidth = (int)$extConfig['maxDesktopImageWidth'];
                }

                if (isset($extConfig['maxTabletImageWidth']) && is_numeric($extConfig['maxTabletImageWidth'])) {
                    $tabletWidth = (int)$extConfig['maxTabletImageWidth'];
                }

                if (isset($extConfig['maxSmartphoneImageWidth']) && is_numeric($extConfig['maxSmartphoneImageWidth'])) {
                    $smartphoneWidth = (int)$extConfig['maxSmartphoneImageWidth'];
                }
            } catch (\Exception $e) {
            }
        }

        return [
            'supportedMimeTypes' => $supportedMimeTypes,
            'maxDesktopImageWidth' => $desktopWidth,
            'maxTabletImageWidth' => $tabletWidth,
            'maxSmartphoneImageWidth' => $smartphoneWidth,
        ];
    }
public static function getExtensionConfig ( ) : array { $ supportedMimeTypes = self :: DEFAULT_SUPPORTED_MIME_TYPES ; $ desktopWidth = self :: DEFAULT_DESKTOP_WIDTH ; $ tabletWidth = self :: DEFAULT_TABLET_WIDTH ; $ smartphoneWidth = self :: DEFAULT_SMARTPHONE_WIDTH ; if ( isset ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXTENSIONS' ] [ 'responsive_images' ] ) ) { $ supportedMimeTypes = $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXTENSIONS' ] [ 'responsive_images' ] [ 'supportedMimeTypes' ] ?? self :: DEFAULT_SUPPORTED_MIME_TYPES ; $ desktopWidth = ( int ) $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXTENSIONS' ] [ 'responsive_images' ] [ 'maxDesktopImageWidth' ] ?? self :: DEFAULT_DESKTOP_WIDTH ; $ tabletWidth = ( int ) $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXTENSIONS' ] [ 'responsive_images' ] [ 'maxTabletImageWidth' ] ?? self :: DEFAULT_TABLET_WIDTH ; $ smartphoneWidth = ( int ) $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXTENSIONS' ] [ 'responsive_images' ] [ 'maxSmartphoneImageWidth' ] ?? self :: DEFAULT_SMARTPHONE_WIDTH ; } elseif ( isset ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXT' ] [ 'extConf' ] [ 'responsive_images' ] ) ) { try { $ extConfig = unserialize ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXT' ] [ 'extConf' ] [ 'responsive_images' ] ) ; if ( ! empty ( $ extConfig [ 'supportedMimeTypes' ] ) ) { $ supportedMimeTypes = $ extConfig [ 'supportedMimeTypes' ] ; } if ( isset ( $ extConfig [ 'maxDesktopImageWidth' ] ) && is_numeric ( $ extConfig [ 'maxDesktopImageWidth' ] ) ) { $ desktopWidth = ( int ) $ extConfig [ 'maxDesktopImageWidth' ] ; } if ( isset ( $ extConfig [ 'maxTabletImageWidth' ] ) && is_numeric ( $ extConfig [ 'maxTabletImageWidth' ] ) ) { $ tabletWidth = ( int ) $ extConfig [ 'maxTabletImageWidth' ] ; } if ( isset ( $ extConfig [ 'maxSmartphoneImageWidth' ] ) && is_numeric ( $ extConfig [ 'maxSmartphoneImageWidth' ] ) ) { $ smartphoneWidth = ( int ) $ extConfig [ 'maxSmartphoneImageWidth' ] ; } } catch ( \ Exception $ e ) { } } return [ 'supportedMimeTypes' => $ supportedMimeTypes , 'maxDesktopImageWidth' => $ desktopWidth , 'maxTabletImageWidth' => $ tabletWidth , 'maxSmartphoneImageWidth' => $ smartphoneWidth , ] ; }
Returns extension management configuration as array.

@return array
Returns extension management configuration as array .