function BookOutlineConstraintValidator::__construct

Creates a new BookOutlineConstraintValidator instance.

Parameters

\Drupal\book\BookManagerInterface $book_manager: The book manager.

File

core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraintValidator.php, line 29

Class

BookOutlineConstraintValidator
Constraint validator for changing the book outline in pending revisions.

Namespace

Drupal\book\Plugin\Validation\Constraint

Code

public function __construct(BookManagerInterface $book_manager) {
  $this->bookManager = $book_manager;
}

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