function ForumManagerInterface::checkNodeType
Same name in other branches
- 9 core/modules/forum/src/ForumManagerInterface.php \Drupal\forum\ForumManagerInterface::checkNodeType()
- 10 core/modules/forum/src/ForumManagerInterface.php \Drupal\forum\ForumManagerInterface::checkNodeType()
- 11.x core/modules/forum/src/ForumManagerInterface.php \Drupal\forum\ForumManagerInterface::checkNodeType()
Checks whether a node can be used in a forum, based on its content type.
Parameters
\Drupal\node\NodeInterface $node: A node entity.
Return value
bool Boolean indicating if the node can be assigned to a forum.
1 method overrides ForumManagerInterface::checkNodeType()
- ForumManager::checkNodeType in core/
modules/ forum/ src/ ForumManager.php - Checks whether a node can be used in a forum, based on its content type.
File
-
core/
modules/ forum/ src/ ForumManagerInterface.php, line 79
Class
- ForumManagerInterface
- Provides forum manager interface.
Namespace
Drupal\forumCode
public function checkNodeType(NodeInterface $node);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.