ForumLeafConstraint.php

Same filename in other branches
  1. 9 core/modules/forum/src/Plugin/Validation/Constraint/ForumLeafConstraint.php
  2. 8.9.x core/modules/forum/src/Plugin/Validation/Constraint/ForumLeafConstraint.php
  3. 10 core/modules/forum/src/Plugin/Validation/Constraint/ForumLeafConstraint.php

Namespace

Drupal\forum\Plugin\Validation\Constraint

File

core/modules/forum/src/Plugin/Validation/Constraint/ForumLeafConstraint.php

View source
<?php

namespace Drupal\forum\Plugin\Validation\Constraint;

use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraint as SymfonyConstraint;

/**
 * Checks that the node is assigned only a "leaf" term in the forum taxonomy.
 */
class ForumLeafConstraint extends SymfonyConstraint {
    public $selectForum = 'Select a forum.';
    public $noLeafMessage = 'The item %forum is a forum container, not a forum. Select one of the forums below instead.';

}

Classes

Title Deprecated Summary
ForumLeafConstraint Checks that the node is assigned only a "leaf" term in the forum taxonomy.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.