LabelFinder

final readonly class \TYPO3\CMS\Lowlevel\Localization\LabelFinder

Table of Contents

Methods

__construct()  : mixed
findLabels()  : array
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 $packages[, string $locale = 'en' ][, string $searchString = '' ][, string $regex = '' ][, bool $searchInIdentifierOnly = false ][, int $limit = 0 ][, bool $flatList = false ]) : array

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
$locale : string = 'en'
$searchString : string = ''
$regex : string = ''
$searchInIdentifierOnly : bool = false
$limit : int = 0
$flatList : bool = false

Tags

returns

DomainSearchResult[]|LabelSearchResult[]

Return values

array
On this page