Copied!

ContentNameCriterion

ContentNameCriterion.php : 18
Read-only
Final
Implements CriterionInterface

Matches translations whose content name contains the given phrase, case-insensitively. The name is the one a review item displays, that is the source-language name of the published version with a fallback to the main-language name; deleted content has no name and never matches.

Methods

public__construct()

ContentNameCriterion.php : 26
public __construct(string $phrase)

Parameters

Name Type Default value Description
$phrase string - -
Tags
Throws
InvalidArgumentException

if the phrase is empty once trimmed

publicgetPhrase()

ContentNameCriterion.php : 39
public getPhrase() : non-empty-string

Return values

non-empty-string