trait HasLabel (View source)

Properties

protected string|Closure|null $label
protected bool $shouldTranslateLabel

Methods

label(string|Closure|null $label)

No description

translateLabel(bool $shouldTranslateLabel = true)

No description

string|null
getLabel()

No description

string|null
getDefaultLabel()

No description

Details

HasLabel label(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

HasLabel

HasLabel translateLabel(bool $shouldTranslateLabel = true)

No description

Parameters

bool $shouldTranslateLabel

Return Value

HasLabel

string|null getLabel()

No description

Return Value

string|null

string|null getDefaultLabel()

No description

Return Value

string|null