Skip to content

Commit

Permalink
code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rpnykanen authored Oct 4, 2023
1 parent d7e9877 commit 4a51f9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Menu/FilterDisabledTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\node\Entity\Node;
use Drupal\menu_block_current_language\Event\Events;
use Drupal\menu_block_current_language\Event\HasTranslationEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
Expand Down Expand Up @@ -62,7 +61,7 @@ public function filter(HasTranslationEvent $event): void {
$current_language = $this->languageManager
->getCurrentLanguage()
->getId();

$entity = $this->entityTypeManager->getStorage('menu_link_content')
->load($metadata['entity_id']);

Expand Down

0 comments on commit 4a51f9a

Please sign in to comment.