Extension Utility

Load informations from TYPO3 extensions.

class ExtensionUtility
Fully qualified name
\Jar\Utilities\Utilities\ExtensionUtility

getExtensionConfiguration ( $extkey)

Loads the configuration from a extension.

param string $extkey

The extension key.

Example:

ExtensionUtility::getExtensionConfiguration('backend');
Copied!

returns

[        
   'backendFavicon' => '',
   'backendLogo' => '',
   'loginBackgroundImage' => '',
   'loginFootnote' => '',
   'loginHighlightColor' => '',
   'loginLogo' => ''
]
Copied!
Returns

The extension configuration.


getAbsExtPath ( $extkey, $path)

Get the absolute path to a extension.

param string $extkey

The extension key.

param string $path

Optional path in extension directory.

Example:

ExtensionUtility::getAbsExtPath('backend', 'Resources/Public');
Copied!

returns

/var/www/.../typo3/sysext/backend/Resources/Public
Copied!
Returns

The absolute path.


getExtensionVersion ( $extkey)

Same as ExtensionManagementUtility::getExtensionVersion but removes the trailing "v". Handy when using version_compare.

param string $extkey

The extension key.

Example:

debug( ExtensionManagementUtility::getExtensionVersion('core') );
// returns 'v11.5.9'

debug( ExtensionUtility::getExtensionVersion('core') );
// returns '11.5.9'
Copied!
Returns

The extension version as a string in the format "x.y.z".