function BookManager::checkNodeIsRemovable
Same name in this branch
- 10 core/modules/book/src/BookManager.php \Drupal\book\BookManager::checkNodeIsRemovable()
Same name and namespace in other branches
- 9 core/modules/book/src/BookManager.php \Drupal\book\BookManager::checkNodeIsRemovable()
- 8.9.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::checkNodeIsRemovable()
- 11.x core/modules/book/src/ProxyClass/BookManager.php \Drupal\book\ProxyClass\BookManager::checkNodeIsRemovable()
- 11.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::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.
Overrides BookManagerInterface::checkNodeIsRemovable
File
-
core/
modules/ book/ src/ ProxyClass/ BookManager.php, line 105
Class
- BookManager
- Provides a proxy class for \Drupal\book\BookManager.
Namespace
Drupal\book\ProxyClassCode
public function checkNodeIsRemovable(\Drupal\node\NodeInterface $node) {
return $this->lazyLoadItself()
->checkNodeIsRemovable($node);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.