SlugEnricher
class \
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.
Tags
Table of Contents
Properties
- $slugFieldNamesPerTable : array
Methods
- enrichDataMap() : array
- resolveSlugFieldNames() : string[]
- enrichUndefinedSlugFieldNames() : array
Properties
$slugFieldNamesPerTable
protected
array
$slugFieldNamesPerTable
= []
Methods
enrichDataMap()
public
enrichDataMap(array $dataMap) : array
Parameters
- $dataMap : array
Return values
arrayresolveSlugFieldNames()
public
resolveSlugFieldNames(string $tableName) : string[]
Parameters
- $tableName : string
Return values
string[]enrichUndefinedSlugFieldNames()
protected
enrichUndefinedSlugFieldNames(array $slugFieldNames, array $fieldValues) : array
Parameters
- $slugFieldNames : array
- $fieldValues : array