Use case 3: migration steps from legacy to new API¶
As TYPO3 4.4 removes all hardcoded icons from the Core, all icons in typo3/gfxhave become superfluous as from now. However they are still present in the Core, mainly for backwards compatibility reasons. The same happens to t3ksin with its icons/gfx.
They are due to be removed in 4.6 and so developers are strongly encouraged to migrate the code basis to the sprite system.
As a first step, icons should be copied / pasted into your extension, as long as there are used in a different context as the ones in the Backend. Then, following “Use Case 2” it should be possible to call icons by the means of the API (cf. Chapter Icons API ).
Bellow, find the equivalence of legacy API versus new API.
Legacy API > TYPO3 4.3
Legacy API > TYPO3 4.3
New API < TYPO3 4.4
New API < TYPO3 4.4
Legacy API > TYPO3 4.3
<img src=”t3lib_iconWorks::skinImg(…)” />
New API < TYPO3 4.4
t3lib_iconWorks::getSpriteIcon(‘actions-document-new’)
Legacy API > TYPO3 4.3
t3lib_iconWorks::getIconImage(…)
New API < TYPO3 4.4
t3lib_iconWorks::getSpriteIconForRecord(‘tt_content’)
Legacy API > TYPO3 4.3
New API < TYPO3 4.4
t3lib_iconWorks::getSpriteIconForFile(‘pdf’)