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.

Sample

It is easy, to use a static method. Below there is an example with slashJS().

slashJS()

Snippet

$promptJSS = $this->pObj->pi_getLL( 'error_views_single_noview' );
$promptJSS = \Netzmacher\Refresh\Compatibility\Core\Utility\GeneralUtility::slashJS( $promptJSS );

Exemplification

Refresh provides the method slashJS(), because it is deprecated and won’t be part of the TYPO3 API from version 9.x.

So far you have used slashJS() like

// TYPO3 from 6.2 to 8.7
$jssCode = \TYPO3\CMS\Core\Utility\GeneralUtility::slashJS( $jssCode );

An extension isn’t compatible with TYPO3 from version 9.x with this code.

If you replace the code like in the line below, your extension will be compatible with TYPO3 versions from 6.2 to 9.x.

// TYPO3 from 6.2 to 9.x
$jssCode = \Netzmacher\Refresh\Compatibility\Core\Utility\GeneralUtility::slashJS( $jssCode );