class ForumLeafConstraint

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

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

Hierarchy

  • class \Drupal\forum\Plugin\Validation\Constraint\ForumLeafConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of ForumLeafConstraint

File

core/modules/forum/src/Plugin/Validation/Constraint/ForumLeafConstraint.php, line 12

Namespace

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

}

Members

Title Sort descending Modifiers Object type Summary
ForumLeafConstraint::$noLeafMessage public property
ForumLeafConstraint::$selectForum public property

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