OnFieldChangeTrait

Table of Contents

Methods

forwardOnFieldChangeQueryParams()  : array{fieldChangeFunc: array, fieldChangeFuncHash: string}
Forwards URL query params for `LinkBrowserController`
getOnFieldChangeAttrs()  : array<string, string>
getOnFieldChangeItems()  : array<int, array<string|int, mixed>>

Methods

forwardOnFieldChangeQueryParams()

Forwards URL query params for `LinkBrowserController`

protected forwardOnFieldChangeQueryParams(array<int, OnFieldChangeInterface$items) : array{fieldChangeFunc: array, fieldChangeFuncHash: string}
Parameters
$items : array<int, OnFieldChangeInterface>

fieldChangeFunc items

Return values
array{fieldChangeFunc: array, fieldChangeFuncHash: string}

relevant URL query params for LinkBrowserController

getOnFieldChangeAttrs()

protected getOnFieldChangeAttrs(string $event, array<int, OnFieldChangeInterface$items) : array<string, string>
Parameters
$event : string

target client event, either change or click

$items : array<int, OnFieldChangeInterface>

fieldChangeFunc items

Return values
array<string, string>

HTML attrs, not encoded - consumers MUST encode with htmlspecialchars

getOnFieldChangeItems()

protected getOnFieldChangeItems(array<int, OnFieldChangeInterface$items) : array<int, array<string|int, mixed>>
Parameters
$items : array<int, OnFieldChangeInterface>

fieldChangeFunc items

Return values
array<int, array<string|int, mixed>>

        
On this page

Search results