You are here

public function BookOutlineConstraintValidator::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraintValidator.php \Drupal\book\Plugin\Validation\Constraint\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;
}