‪TYPO3CMS  11.5
TYPO3\CMS\IndexedSearch\Hook\TypoScriptFrontendHook Class Reference

Public Member Functions

 indexPageContent (array $parameters, TypoScriptFrontendController $tsfe)
 

Protected Member Functions

array initializeIndexerConfiguration (TypoScriptFrontendController $tsfe, LanguageAspect $languageAspect)
 
string convOutputCharset (string $content, string $metaCharset)
 

Detailed Description

Hooks for \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController (TSFE).

this is a TYPO3-internal hook implementation and not part of TYPO3's Core API.

Definition at line 32 of file TypoScriptFrontendHook.php.

Member Function Documentation

◆ convOutputCharset()

string TYPO3\CMS\IndexedSearch\Hook\TypoScriptFrontendHook::convOutputCharset ( string  $content,
string  $metaCharset 
)
protected

Converts input string from utf-8 to metaCharset IF the two charsets are different.

Parameters
string$content‪Content to be converted.
string$metaCharset
Returns
‪string Converted content string.

Definition at line 138 of file TypoScriptFrontendHook.php.

Referenced by TYPO3\CMS\IndexedSearch\Hook\TypoScriptFrontendHook\initializeIndexerConfiguration().

◆ indexPageContent()

TYPO3\CMS\IndexedSearch\Hook\TypoScriptFrontendHook::indexPageContent ( array  $parameters,
TypoScriptFrontendController  $tsfe 
)

Trigger indexing of content, after evaluating if this page could / should be indexed.

Parameters
array$parameters
TypoScriptFrontendController$tsfe

Definition at line 40 of file TypoScriptFrontendHook.php.

References TYPO3\CMS\IndexedSearch\Hook\TypoScriptFrontendHook\initializeIndexerConfiguration().

◆ initializeIndexerConfiguration()

array TYPO3\CMS\IndexedSearch\Hook\TypoScriptFrontendHook::initializeIndexerConfiguration ( TypoScriptFrontendController  $tsfe,
LanguageAspect  $languageAspect 
)
protected

Setting up internal configuration from config array based on TypoScriptFrontendController Information about page for which the indexing takes place

Parameters
TypoScriptFrontendController$tsfe
LanguageAspect$languageAspect
Returns
‪array

Definition at line 84 of file TypoScriptFrontendHook.php.

References TYPO3\CMS\IndexedSearch\Hook\TypoScriptFrontendHook\convOutputCharset(), TYPO3\CMS\Core\Context\LanguageAspect\getId(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getPageArguments().

Referenced by TYPO3\CMS\IndexedSearch\Hook\TypoScriptFrontendHook\indexPageContent().