function BookNodeIsRemovableAccessCheck::__construct

Same name in other branches
  1. 9 core/modules/book/src/Access/BookNodeIsRemovableAccessCheck.php \Drupal\book\Access\BookNodeIsRemovableAccessCheck::__construct()
  2. 8.9.x core/modules/book/src/Access/BookNodeIsRemovableAccessCheck.php \Drupal\book\Access\BookNodeIsRemovableAccessCheck::__construct()
  3. 10 core/modules/book/src/Access/BookNodeIsRemovableAccessCheck.php \Drupal\book\Access\BookNodeIsRemovableAccessCheck::__construct()

Constructs a BookNodeIsRemovableAccessCheck object.

Parameters

\Drupal\book\BookManagerInterface $book_manager: Book Manager Service.

File

core/modules/book/src/Access/BookNodeIsRemovableAccessCheck.php, line 28

Class

BookNodeIsRemovableAccessCheck
Determines whether the requested node can be removed from its book.

Namespace

Drupal\book\Access

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.