BookOutlineConstraint.php

Same filename and directory in other branches
  1. 9 core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraint.php
  2. 8.9.x core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraint.php
  3. 10 core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraint.php

Namespace

Drupal\book\Plugin\Validation\Constraint

File

core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraint.php

View source
<?php

namespace Drupal\book\Plugin\Validation\Constraint;

use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraint as SymfonyConstraint;

/**
 * Validation constraint for changing the book outline in pending revisions.
 */
class BookOutlineConstraint extends SymfonyConstraint {
    public $message = 'You can only change the book outline for the <em>published</em> version of this content.';

}

Classes

Title Deprecated Summary
BookOutlineConstraint Validation constraint for changing the book outline in pending revisions.

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