Commit 1d8af8fe authored by Pawel G's avatar Pawel G

Issue #3097353 by dagomar,gbyte.co: EntityMenuLinkContentUrlGenerator should...

Issue #3097353 by dagomar,gbyte.co: EntityMenuLinkContentUrlGenerator should use MenuLinkTreeInterface
parent 37b565fd
...@@ -9,7 +9,7 @@ use Drupal\Core\Language\LanguageManagerInterface; ...@@ -9,7 +9,7 @@ use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Menu\MenuTreeParameters; use Drupal\Core\Menu\MenuTreeParameters;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Menu\MenuLinkTree; use Drupal\Core\Menu\MenuLinkTreeInterface;
use Drupal\Core\Menu\MenuLinkBase; use Drupal\Core\Menu\MenuLinkBase;
/** /**
...@@ -44,7 +44,7 @@ class EntityMenuLinkContentUrlGenerator extends EntityUrlGeneratorBase { ...@@ -44,7 +44,7 @@ class EntityMenuLinkContentUrlGenerator extends EntityUrlGeneratorBase {
* @param \Drupal\Core\Language\LanguageManagerInterface $language_manager * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* @param \Drupal\simple_sitemap\EntityHelper $entityHelper * @param \Drupal\simple_sitemap\EntityHelper $entityHelper
* @param \Drupal\Core\Menu\MenuLinkTree $menu_link_tree * @param \Drupal\Core\Menu\MenuLinkTreeInterface $menu_link_tree
*/ */
public function __construct( public function __construct(
array $configuration, array $configuration,
...@@ -55,7 +55,7 @@ class EntityMenuLinkContentUrlGenerator extends EntityUrlGeneratorBase { ...@@ -55,7 +55,7 @@ class EntityMenuLinkContentUrlGenerator extends EntityUrlGeneratorBase {
LanguageManagerInterface $language_manager, LanguageManagerInterface $language_manager,
EntityTypeManagerInterface $entity_type_manager, EntityTypeManagerInterface $entity_type_manager,
EntityHelper $entityHelper, EntityHelper $entityHelper,
MenuLinkTree $menu_link_tree MenuLinkTreeInterface $menu_link_tree
) { ) {
parent::__construct( parent::__construct(
$configuration, $configuration,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment