ResultItemAction implements JsonSerializable

FinalYes

Class that represents a search result item action

Internal

Class may change in further iterations, do not rely on it

Table of Contents

Interfaces

JsonSerializable

Methods

__construct()  : mixed
jsonSerialize()  : array<string|int, mixed>
setIcon()  : self
setLabel()  : self
setUrl()  : self

Methods

__construct()

public __construct(non-empty-string $identifier) : mixed
Parameters
$identifier : non-empty-string

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

setIcon()

public setIcon(Icon|null $icon) : self
Parameters
$icon : Icon|null
Return values
self

setLabel()

public setLabel(string $label) : self
Parameters
$label : string
Return values
self

setUrl()

public setUrl(string $url) : self
Parameters
$url : string
Return values
self

        
On this page

Search results