‪TYPO3CMS  10.4
TYPO3\CMS\Core\DataHandling\SlugEnricher Class Reference

Public Member Functions

array enrichDataMap (array $dataMap)
 
string[] resolveSlugFieldNames (string $tableName)
 

Protected Member Functions

array enrichUndefinedSlugFieldNames (array $slugFieldNames, array $fieldValues)
 

Protected Attributes

array $slugFieldNamesPerTable = array( )
 

Detailed Description

New records that are capable of handling slugs (TCA type 'slug'), always require the field value to be set in order to run through the validation process to create a new slug. Fields having null as value are ignored and can be used to by-pass implicit slug initialization.

See also
DataHandler::fillInFieldArray()
DataHandler::checkValueForSlug()

Definition at line 31 of file SlugEnricher.php.

Member Function Documentation

◆ enrichDataMap()

array TYPO3\CMS\Core\DataHandling\SlugEnricher::enrichDataMap ( array  $dataMap)

◆ enrichUndefinedSlugFieldNames()

array TYPO3\CMS\Core\DataHandling\SlugEnricher::enrichUndefinedSlugFieldNames ( array  $slugFieldNames,
array  $fieldValues 
)
protected
Parameters
array$slugFieldNames
array$fieldValues
Returns
‪array

Definition at line 66 of file SlugEnricher.php.

Referenced by TYPO3\CMS\Core\DataHandling\SlugEnricher\enrichDataMap().

◆ resolveSlugFieldNames()

string [] TYPO3\CMS\Core\DataHandling\SlugEnricher::resolveSlugFieldNames ( string  $tableName)
Parameters
string$tableName
Returns
‪string[]

Definition at line 91 of file SlugEnricher.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\DataHandling\SlugEnricher\enrichDataMap().

Member Data Documentation

◆ $slugFieldNamesPerTable

array TYPO3\CMS\Core\DataHandling\SlugEnricher::$slugFieldNamesPerTable = array( )
protected

Definition at line 35 of file SlugEnricher.php.