diff --git a/core/modules/forum/lib/Drupal/forum/ForumManager.php b/core/modules/forum/lib/Drupal/forum/ForumManager.php index 5186859..67ab628 100644 --- a/core/modules/forum/lib/Drupal/forum/ForumManager.php +++ b/core/modules/forum/lib/Drupal/forum/ForumManager.php @@ -10,8 +10,8 @@ use Drupal\Core\Config\ConfigFactory; use Drupal\Core\Database\Connection; use Drupal\Core\Entity\EntityManager; -use Drupal\Core\Entity\EntityInterface; use Drupal\field\FieldInfo; +use Drupal\node\Plugin\Core\Entity\NodeInterface; /** * Provides forum manager service. @@ -480,7 +480,7 @@ public function getParents($tid) { /** * {@inheritdoc} */ - public function checkNodeType(EntityInterface $node) { + public function checkNodeType(NodeInterface $node) { // Fetch information about the forum field. $instances = $this->fieldInfo->getBundleInstances('node', $node->bundle()); return !empty($instances['taxonomy_forums']);