class LabelFormatter implements EntryFormatterInterface (View source)

Properties

protected FormatterInterface $formatter

Methods

__construct(FormatterInterface $formatter)

No description

string|null
format(string $mask, Entry $entry)

Format a mask given an entry

mixed
getLabel(Entry $entry)

Given no mask, we inspect the attributes on an entry to retrieve a display text label for it.

Details

__construct(FormatterInterface $formatter)

No description

Parameters

FormatterInterface $formatter

string|null format(string $mask, Entry $entry)

Format a mask given an entry

Parameters

string $mask
Entry $entry

Return Value

string|null

mixed getLabel(Entry $entry)

Given no mask, we inspect the attributes on an entry to retrieve a display text label for it.

Parameters

Entry $entry

Return Value

mixed