class TranslatorCollector extends DataCollector implements Renderable, AssetProvider

This class collects the translations

Properties

static protected Translator $translator Translation engine
protected array $translations Array containing the translations

Methods

__construct(Translator $translator)

TranslationCollector constructor.

string
getName()

Returns the unique name of the collector

array
getWidgets()

Returns a hash where keys are control names and their values an array of options as defined in {see DebugBar\JavascriptRenderer::addControl()}

array
getAssets()

Returns the needed assets

array
collect()

Called by the DebugBar when data needs to be collected

addTranslations()

Add a translation key to the collector

Details

at line 40
__construct(Translator $translator)

TranslationCollector constructor.

Parameters

Translator $translator

at line 51
string getName()

Returns the unique name of the collector

Return Value

string

at line 62
array getWidgets()

Returns a hash where keys are control names and their values an array of options as defined in {see DebugBar\JavascriptRenderer::addControl()}

Return Value

array

at line 84
array getAssets()

Returns the needed assets

Return Value

array

at line 97
array collect()

Called by the DebugBar when data needs to be collected

Return Value

array Collected data

at line 110
private addTranslations()

Add a translation key to the collector