public function ForumTopicHandler::isForumTopicType in Opigno forum 8
Same name and namespace in other branches
- 3.x src/ForumTopicHandler.php \Drupal\opigno_forum\ForumTopicHandler::isForumTopicType()
Checks whether nodes of the specified type are forum topics.
Parameters
string $node_type_id: A node type ID.
Return value
bool TRUE if nodes of the specified type are forum topics, FALSE otherwise.
1 call to ForumTopicHandler::isForumTopicType()
- ForumTopicHandler::onNodeInsert in src/
ForumTopicHandler.php - Performs node creation tasks.
File
- src/
ForumTopicHandler.php, line 119
Class
- ForumTopicHandler
- Handles the relationship between forum topics and groups.
Namespace
Drupal\opigno_forumCode
public function isForumTopicType($node_type_id) {
$definitions = $this->entityFieldManager
->getFieldDefinitions('node', $node_type_id);
return isset($definitions['taxonomy_forums']);
}