public function ForumController::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/forum/src/Controller/ForumController.php \Drupal\forum\Controller\ForumController::__construct()
- 9 core/modules/forum/src/Controller/ForumController.php \Drupal\forum\Controller\ForumController::__construct()
Constructs a ForumController object.
Parameters
\Drupal\forum\ForumManagerInterface $forum_manager: The forum manager service.
\Drupal\taxonomy\VocabularyStorageInterface $vocabulary_storage: Vocabulary storage.
\Drupal\taxonomy\TermStorageInterface $term_storage: Term storage.
\Drupal\Core\Session\AccountInterface $current_user: The current logged in user.
\Drupal\Core\Entity\EntityAccessControlHandlerInterface $node_access: Node access control handler.
array $field_map: Array of active fields on the site.
\Drupal\Core\Entity\EntityStorageInterface $node_type_storage: Node type storage handler.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
\Drupal\Core\Entity\EntityTypeInterface $node_entity_type_definition: Node entity type definition object
\Drupal\Core\Entity\EntityTypeInterface $comment_entity_type_definition: Comment entity type definition object
File
- core/
modules/ forum/ src/ Controller/ ForumController.php, line 111
Class
- ForumController
- Controller routines for forum routes.
Namespace
Drupal\forum\ControllerCode
public function __construct(ForumManagerInterface $forum_manager, VocabularyStorageInterface $vocabulary_storage, TermStorageInterface $term_storage, AccountInterface $current_user, EntityAccessControlHandlerInterface $node_access, array $field_map, EntityStorageInterface $node_type_storage, RendererInterface $renderer, EntityTypeInterface $node_entity_type_definition, EntityTypeInterface $comment_entity_type_definition) {
$this->forumManager = $forum_manager;
$this->vocabularyStorage = $vocabulary_storage;
$this->termStorage = $term_storage;
$this->currentUser = $current_user;
$this->nodeAccess = $node_access;
$this->fieldMap = $field_map;
$this->nodeTypeStorage = $node_type_storage;
$this->renderer = $renderer;
$this->nodeEntityTypeDefinition = $node_entity_type_definition;
$this->commentEntityTypeDefinition = $comment_entity_type_definition;
}