Template¶
addJsFooterInlineCode()¶
What does it do?¶
The method is using the class of the TYPO3 API of the same name.
Header¶
/**
 * addJsFooterInlineCode(): Adds JSS-inline-code to the footer section of the page
 *
 * @param string        name
 * @param string        block
 * @param boolean       compress
 * @return      void
 */
public static function addJsFooterInlineCode( $name, $block, $compress )
Sample¶
$name = 'leafletFooterInline';
$block = $this->mapLLjssLeafletFooterInline;
$compress = 1;
Netzmacher\Refresh\Compatibility\Backend\Template\ModuleTemplate::addJsFooterInlineCode( $name, $block, $compress );
Refresh¶
You can refresh your extension by find and replace.
// Code from TYPO3 6.2 to 8.7
$GLOBALS[ 'TSFE' ]->getPageRenderer()->addJsFooterInlineCode( $name, $block, $compress );
// Code from TYPO3 6.2 to 9.x
ModuleTemplate::addJsFooterInlineCode( $name, $block, $compress );
Move “$GLOBALS[ ‘TSFE’ ]->getPageRenderer()->addJsFooterInlineCode” to “Netzmacher\Refresh\Compatibility\Backend\Template\ModuleTemplate::addJsFooterInlineCode”