class SpatieLaravelTranslatablePlugin implements Plugin (View source)

Properties

protected string[] $defaultLocales
protected Closure|null $getLocaleLabelUsing

Methods

__construct()

No description

make()

No description

string
getId()

No description

void
register(Panel $panel)

No description

void
boot(Panel $panel)

No description

array
getDefaultLocales()

No description

defaultLocales(array|null $defaultLocales = null)

No description

void
getLocaleLabelUsing(Closure|null $callback)

No description

string|null
getLocaleLabel(string $locale, string|null $displayLocale = null)

No description

Details

final __construct()

No description

string getId()

No description

Return Value

string

void register(Panel $panel)

No description

Parameters

Panel $panel

Return Value

void

void boot(Panel $panel)

No description

Parameters

Panel $panel

Return Value

void

array getDefaultLocales()

No description

Return Value

array

SpatieLaravelTranslatablePlugin defaultLocales(array|null $defaultLocales = null)

No description

Parameters

array|null $defaultLocales

Return Value

SpatieLaravelTranslatablePlugin

void getLocaleLabelUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

void

string|null getLocaleLabel(string $locale, string|null $displayLocale = null)

No description

Parameters

string $locale
string|null $displayLocale

Return Value

string|null