You are here

LanguageCombinationConstraint.php in Translation Management Tool 8

File

translators/tmgmt_local/skills/src/Plugin/Validation/Constraint/LanguageCombinationConstraint.php
View source
<?php

namespace Drupal\tmgmt_language_combination\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraint;

/**
 * Checks that the node is assigned only a "leaf" term in the forum taxonomy.
 *
 * @Constraint(
 *   id = "TMGMTLanguageCombination",
 *   label = @Translation("Language Combination", context = "Validation"),
 * )
 */
class LanguageCombinationConstraint extends Constraint {
  public $noDifferentMessage = 'The \'from\' and \'to\' language fields can\'t have the same value.';
  public $uniqueMessage = 'The language combination has to be unique.';

}

Classes

Namesort descending Description
LanguageCombinationConstraint Checks that the node is assigned only a "leaf" term in the forum taxonomy.