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

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
Tags
returns

DomainSearchResult[]|LabelSearchResult[]

Return values
array<string|int, mixed>

        
On this page

Search results