class BookOutlineConstraint

Same name in other branches
  1. 8.9.x core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraint.php \Drupal\book\Plugin\Validation\Constraint\BookOutlineConstraint
  2. 10 core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraint.php \Drupal\book\Plugin\Validation\Constraint\BookOutlineConstraint
  3. 11.x 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\Constraint
View source
class BookOutlineConstraint extends Constraint {
    public $message = 'You can only change the book outline for the <em>published</em> version of this content.';

}

Members

Title Sort descending Modifiers Object type Summary
BookOutlineConstraint::$message public property

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