class ForumLeafConstraint in Drupal 9
Same name and namespace in other branches
- 8 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ForumLeafConstraint:: |
public | property | ||
ForumLeafConstraint:: |
public | property |