You are here

class LanguageCombinationConstraint in Translation Management Tool 8

Checks that the node is assigned only a "leaf" term in the forum taxonomy.

Plugin annotation


@Constraint(
  id = "TMGMTLanguageCombination",
  label = @Translation("Language Combination", context = "Validation"),
)

Hierarchy

  • class \Drupal\tmgmt_language_combination\Plugin\Validation\Constraint\LanguageCombinationConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of LanguageCombinationConstraint

File

translators/tmgmt_local/skills/src/Plugin/Validation/Constraint/LanguageCombinationConstraint.php, line 15

Namespace

Drupal\tmgmt_language_combination\Plugin\Validation\Constraint
View source
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.';

}

Members