SlugEnricher
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<string|int, mixed>
Methods
- enrichDataMap() : array<string|int, mixed>
- resolveSlugFieldNames() : array<string|int, string>
- enrichUndefinedSlugFieldNames() : array<string|int, mixed>
Properties
$slugFieldNamesPerTable
protected
array<string|int, mixed>
$slugFieldNamesPerTable
= []
Methods
enrichDataMap()
public
enrichDataMap(array<string|int, mixed> $dataMap) : array<string|int, mixed>
Parameters
- $dataMap : array<string|int, mixed>
Return values
array<string|int, mixed>resolveSlugFieldNames()
public
resolveSlugFieldNames(string $tableName) : array<string|int, string>
Parameters
- $tableName : string
Return values
array<string|int, string>enrichUndefinedSlugFieldNames()
protected
enrichUndefinedSlugFieldNames(array<string|int, mixed> $slugFieldNames, array<string|int, mixed> $fieldValues) : array<string|int, mixed>
Parameters
- $slugFieldNames : array<string|int, mixed>
- $fieldValues : array<string|int, mixed>