BookManagerInterface::checkNodeIsRemovable

public BookManagerInterface::checkNodeIsRemovable(NodeInterface $node)

Determines if a node can be removed from the book.

A node can be removed from a book if it is actually in a book and it either is not a top-level page or is a top-level page with no children.

Parameters

\Drupal\node\NodeInterface $node: The node to remove from the outline.

Return value

bool TRUE if a node can be removed from the book, FALSE otherwise.

File

core/modules/book/src/BookManagerInterface.php, line 294

Class

BookManagerInterface
Provides an interface defining a book manager.

Namespace

Drupal\book

Code

1
public function checkNodeIsRemovable(NodeInterface $node);
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.