public ForumBreadcrumbBuilderBase::__construct(EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory, ForumManagerInterface $forum_manager, TranslationInterface$string_translation)
Constructs a forum breadcrumb builder object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
\Drupal\forum\ForumManagerInterface $forum_manager: The forum manager service.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
File
- core/modules/forum/src/Breadcrumb/ForumBreadcrumbBuilderBase.php, line 57
Class
- ForumBreadcrumbBuilderBase
- Provides a forum breadcrumb base class.
Namespace
Drupal\forum\Breadcrumb
Code
public function __construct(EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory, ForumManagerInterface $forum_manager, TranslationInterface $string_translation) { $this->entityManager = $entity_manager; $this->config = $config_factory->get('forum.settings'); $this->forumManager = $forum_manager; $this->setStringTranslation($string_translation); }
Please login to continue.