class BookNodeIsRemovableAccessCheck implements AccessInterface (View source)

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

Properties

protected BookManagerInterface $bookManager

Book Manager Service.

Methods

__construct(BookManagerInterface $book_manager)

Constructs a BookNodeIsRemovableAccessCheck object.

access(NodeInterface $node)

Checks access for removing the node from its book.

Details

__construct(BookManagerInterface $book_manager)

Constructs a BookNodeIsRemovableAccessCheck object.

Parameters

BookManagerInterface $book_manager

Book Manager Service.

AccessResultInterface access(NodeInterface $node)

Checks access for removing the node from its book.

Parameters

NodeInterface $node

The node requested to be removed from its book.

Return Value

AccessResultInterface

The access result.