LabelFinder
Read onlyYes
FinalYes
Table of Contents
Methods
- __construct() : mixed
- findLabels() : array<string|int, mixed>
- Finds translation labels in the given packages filtered by locale, search string, and/or regex.
Methods
__construct()
public
__construct(LocalizationFactory $localizationFactory, TranslationDomainMapper $translationDomainMapper) : mixed
Parameters
- $localizationFactory : LocalizationFactory
- $translationDomainMapper : TranslationDomainMapper
findLabels()
Finds translation labels in the given packages filtered by locale, search string, and/or regex.
public
findLabels(array<string|int, mixed> $packages[, string $locale = 'en' ][, string $searchString = '' ][, string $regex = '' ][, bool $searchInIdentifierOnly = false ][, int $limit = 0 ][, bool $flatList = false ]) : array<string|int, mixed>
If both $searchString and $regex are given, the regex is applied only to labels or references that already contain the search string.
Parameters
- $packages : array<string|int, mixed>
- $locale : string = 'en'
- $searchString : string = ''
- $regex : string = ''
- $searchInIdentifierOnly : bool = false
- $limit : int = 0
- $flatList : bool = false