class ForumLeafConstraint
Same name in other branches
- 8.9.x core/modules/forum/src/Plugin/Validation/Constraint/ForumLeafConstraint.php \Drupal\forum\Plugin\Validation\Constraint\ForumLeafConstraint
- 10 core/modules/forum/src/Plugin/Validation/Constraint/ForumLeafConstraint.php \Drupal\forum\Plugin\Validation\Constraint\ForumLeafConstraint
- 11.x 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.
Plugin annotation
@Constraint(
id = "ForumLeaf",
label = @Translation("Forum leaf", context = "Validation"),
)
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 15
Namespace
Drupal\forum\Plugin\Validation\ConstraintView source
class ForumLeafConstraint extends Constraint {
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.