TcaSlug implements FormDataProviderInterface

Handles custom data for TCA Type=Slug

Table of Contents

Interfaces

FormDataProviderInterface
Interface must be implemented by form data provider classes.

Methods

addData()  : array<string|int, mixed>
Resolve slug prefix items
getPrefixForSite()  : string
Render the prefix for the input field.

Methods

addData()

Resolve slug prefix items

public addData(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
$result : array<string|int, mixed>

Initialized result array

Tags
throws
UnexpectedValueException
Return values
array<string|int, mixed>

Result filled with more data

getPrefixForSite()

Render the prefix for the input field.

protected getPrefixForSite(SiteInterface $site, int $languageId) : string
Parameters
$site : SiteInterface
$languageId : int
Return values
string

        
On this page

Search results