HistoryLabel
extends AbstractHelper
in package
"Search history label" view helper
Tags
Table of Contents
- $config : array<string|int, mixed>
- Label configuration
- $translator : TransEsc
- Translation helper
- __construct() : mixed
- Constructor
- __invoke() : string
- Return a label for the specified class (if configured).
Properties
$config
Label configuration
protected
array<string|int, mixed>
$config
$translator
Translation helper
protected
TransEsc
$translator
Methods
__construct()
Constructor
public
__construct(array<string|int, mixed> $config, TransEsc $translator) : mixed
Parameters
- $config : array<string|int, mixed>
-
Label configuration
- $translator : TransEsc
-
Translation helper
Return values
mixed —__invoke()
Return a label for the specified class (if configured).
public
__invoke(string $class) : string
Parameters
- $class : string
-
The search class ID of the active search