function BookManagerInterface::checkNodeIsRemovable
Same name in other branches
- 9 core/modules/book/src/BookManagerInterface.php \Drupal\book\BookManagerInterface::checkNodeIsRemovable()
- 10 core/modules/book/src/BookManagerInterface.php \Drupal\book\BookManagerInterface::checkNodeIsRemovable()
- 11.x core/modules/book/src/BookManagerInterface.php \Drupal\book\BookManagerInterface::checkNodeIsRemovable()
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.
1 method overrides BookManagerInterface::checkNodeIsRemovable()
- BookManager::checkNodeIsRemovable in core/
modules/ book/ src/ BookManager.php - Determines if a node can be removed from the book.
File
-
core/
modules/ book/ src/ BookManagerInterface.php, line 294
Class
- BookManagerInterface
- Provides an interface defining a book manager.
Namespace
Drupal\bookCode
public function checkNodeIsRemovable(NodeInterface $node);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.