public ForumManager::__construct(ConfigFactoryInterface $config_factory, EntityManagerInterface $entity_manager, Connection $connection, TranslationInterface $string_translation, CommentManagerInterface $comment_manager)
Constructs the forum manager service.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.
\Drupal\Core\Database\Connection $connection: The current database connection.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager service.
\Drupal\comment\CommentManagerInterface $comment_manager: The comment manager service.
File
- core/modules/forum/src/ForumManager.php, line 122
Class
- ForumManager
- Provides forum manager service.
Namespace
Drupal\forum
Code
1 2 3 4 5 6 7 | public function __construct(ConfigFactoryInterface $config_factory , EntityManagerInterface $entity_manager , Connection $connection , TranslationInterface $string_translation , CommentManagerInterface $comment_manager ) { $this ->configFactory = $config_factory ; $this ->entityManager = $entity_manager ; $this ->connection = $connection ; $this ->stringTranslation = $string_translation ; $this ->commentManager = $comment_manager ; } |
Please login to continue.