class BookOutlineConstraint in Drupal 8
Same name and namespace in other branches
- 9 core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraint.php \Drupal\book\Plugin\Validation\Constraint\BookOutlineConstraint
Validation constraint for changing the book outline in pending revisions.
Plugin annotation
@Constraint(
id = "BookOutline",
label = @Translation("Book outline.", context = "Validation"),
)
Hierarchy
- class \Drupal\book\Plugin\Validation\Constraint\BookOutlineConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of BookOutlineConstraint
File
- core/
modules/ book/ src/ Plugin/ Validation/ Constraint/ BookOutlineConstraint.php, line 15
Namespace
Drupal\book\Plugin\Validation\ConstraintView source
class BookOutlineConstraint extends Constraint {
public $message = 'You can only change the book outline for the <em>published</em> version of this content.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BookOutlineConstraint:: |
public | property |