function BookOutlineConstraintValidator::create

Same name in other branches
  1. 9 core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraintValidator.php \Drupal\book\Plugin\Validation\Constraint\BookOutlineConstraintValidator::create()
  2. 8.9.x core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraintValidator.php \Drupal\book\Plugin\Validation\Constraint\BookOutlineConstraintValidator::create()
  3. 11.x core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraintValidator.php \Drupal\book\Plugin\Validation\Constraint\BookOutlineConstraintValidator::create()

Overrides ContainerInjectionInterface::create

File

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

Class

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

Namespace

Drupal\book\Plugin\Validation\Constraint

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('book.manager'));
}

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