public function BookOutlineConstraintValidator::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraintValidator.php \Drupal\book\Plugin\Validation\Constraint\BookOutlineConstraintValidator::__construct()
- 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\ConstraintCode
public function __construct(BookManagerInterface $book_manager) {
$this->bookManager = $book_manager;
}