Issue Feature Closed

#20102Add Core API function to Extension Management: getEMConfArray($key)

Daniel Krupke 02/27/09, 15:18 updated 10/02/18, 12:41

Description

There should be an easy and short way to get the EM_CONF Array for a specific extension key.

This one shoud be placed into t3lib/class.t3lib_extmgm.php (Core API).

Examples for defining such a function:
t3lib_extmgm::getEMConfArray($extkey) // you get full EM_CONF Array for extension: $extkey

t3lib_extmgm::getEMConfArray($extkey, $key) // you get value for $key in EM_CONF Array for extension: $extkey
(a problem with this one: keys can be nested in EM_CONF)

Examples of usage:
1)
$version = t3lib_extmgm::getEMConfArray(‘realurl’, ‘version’);

2)
$realurl_emconf = t3lib_extmgm::getEMConfArray(‘realurl’);
$version = $realurl_emconf[‘version’];

(issue imported from #M10563)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.