DataHandlerSlugUpdateHook

Internal

This class is a specific TYPO3 hook implementation and is not part of the Public TYPO3 API.

Attributes
#[Autoconfigure]
$public: true

Table of Contents

Properties

$persistedChangedItems  : array<int, SlugRedirectChangeItem>
Persisted slug values per record UID e.g. `[13 => SlugRedirectChangeItem( $original = ['slug' => 'slug-a'] ), 14 => SlugRedirectChangeItem( $original = ['slug' => 'slug-x/example'] )`
$slugRedirectChangeItemFactory  : SlugRedirectChangeItemFactory
$slugService  : SlugService

Methods

__construct()  : mixed
processDatamap_afterDatabaseOperations()  : void
Acts on potential slug changes.
processDatamap_preProcessFieldArray()  : void
Collects slugs of persisted records before having been updated.
isNestedHookInvocation()  : bool
Determines whether our identifier is part of correlation id aspects.

Properties

$persistedChangedItems

Persisted slug values per record UID e.g. `[13 => SlugRedirectChangeItem( $original = ['slug' => 'slug-a'] ), 14 => SlugRedirectChangeItem( $original = ['slug' => 'slug-x/example'] )`

protected array<int, SlugRedirectChangeItem> $persistedChangedItems

Methods

processDatamap_afterDatabaseOperations()

Acts on potential slug changes.

public processDatamap_afterDatabaseOperations(string $status, string $table, mixed $id, array<string|int, mixed> $fieldArray, DataHandler $dataHandler) : void

Hook processDatamap_afterDatabaseOperations is a record has been persisted and after DataHandler::fillInFields which ensure access to pages.slug field and applies possible evaluations (eval => 'trim,...).

Parameters
$status : string
$table : string
$id : mixed
$fieldArray : array<string|int, mixed>
$dataHandler : DataHandler

processDatamap_preProcessFieldArray()

Collects slugs of persisted records before having been updated.

public processDatamap_preProcessFieldArray(array<string|int, mixed> $incomingFieldArray, string $table, string|int $id, DataHandler $dataHandler) : void
Parameters
$incomingFieldArray : array<string|int, mixed>
$table : string
$id : string|int

(id could be string, for this reason no type hint)

$dataHandler : DataHandler

isNestedHookInvocation()

Determines whether our identifier is part of correlation id aspects.

protected isNestedHookInvocation(DataHandler $dataHandler) : bool

In that case it would be a nested call which has to be ignored.

Parameters
$dataHandler : DataHandler
Return values
bool

        
On this page

Search results