- Copyright
- GPL-2.0-or-later
- Author
- Greta Doci
◆ detectLabelDescriptionEqual()
Wikibase\Repo\Validators\LabelDescriptionNotEqualValidator::detectLabelDescriptionEqual |
( |
array |
$labels, |
|
|
array |
$descriptions |
|
) |
| |
|
private |
Detects when labels and descriptions are equal.
A conflict arises when an entity has the same combination of label and non-empty description for a given language as is present in the $label and $description parameters.
- Parameters
-
string[] | $labels | An associative array of labels, with language codes as the keys. |
string[] | $descriptions | An associative array of descriptions, with language codes as the keys. |
- Returns
- Result
◆ validateEntity()
Wikibase\Repo\Validators\LabelDescriptionNotEqualValidator::validateEntity |
( |
EntityDocument |
$entity | ) |
|
◆ validateLabelAndDescription()
Wikibase\Repo\Validators\LabelDescriptionNotEqualValidator::validateLabelAndDescription |
( |
TermList |
$labels, |
|
|
TermList |
$descriptions, |
|
|
array |
$languageCodes = null |
|
) |
| |
- Parameters
-
TermList | $labels | |
TermList | $descriptions | |
string[] | null | $languageCodes | |
- Returns
- Result
The documentation for this class was generated from the following file: