diff --git a/core/modules/forum/src/Controller/ForumController.php b/core/modules/forum/src/Controller/ForumController.php index b5bfec6..9efb774 100644 --- a/core/modules/forum/src/Controller/ForumController.php +++ b/core/modules/forum/src/Controller/ForumController.php @@ -78,12 +78,12 @@ class ForumController extends ControllerBase { /** * @var \Drupal\Core\Entity\EntityTypeInterface */ - private $nodeListDefinition; + protected $nodeListDefinition; /** * @var \Drupal\Core\Entity\EntityTypeInterface */ - private $nodeDefinition; + protected $nodeDefinition; /** * Constructs a ForumController object. @@ -128,7 +128,7 @@ public function __construct(ForumManagerInterface $forum_manager, VocabularyStor public static function create(ContainerInterface $container) { /** @var \Drupal\Core\Entity\EntityManagerInterface $entity_manager */ $entity_manager = $container->get('entity.manager'); - $tags = $entity_manager->getDefinition('taxonomy_term')->getListCacheTags(); + return new static( $container->get('forum_manager'), $entity_manager->getStorage('taxonomy_vocabulary'),