DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Developer Corner¶
Using tinyurls in your extension¶
When you want to generate tiny URLs in your own extension you can use the \Tx\Tinyurls\TinyUrl\Api
class.
Please have a look at the PHPDoc annotations for further information. This is a quick example how to use it:
$tinyUrlApi = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\Tx\Tinyurls\TinyUrl\Api::class);
$tinyUrlApi->setDeleteOnUse(1);
$tinyUrlApi->setUrlKey($myKey);
$tinyUrlApi->setValidUntil($validUntil);
$myTinyUrl = $tinyUrlApi->getTinyUrl($url);