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

Public Member Functions

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

Protected Member Functions

 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()
Deprecated:
‪since TYPO3 v13, will be removed in TYPO3 v14.0.

Definition at line 32 of file SlugEnricher.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\DataHandling\SlugEnricher::__construct ( )

Definition at line 38 of file SlugEnricher.php.

Member Function Documentation

◆ enrichDataMap()

◆ enrichUndefinedSlugFieldNames()

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

◆ resolveSlugFieldNames()

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

Definition at line 87 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 36 of file SlugEnricher.php.