Commit 75545735 authored by vincent baronnet's avatar vincent baronnet
Browse files

Issue #3114588 by Antonnavi,geek-merlin,anruether,andypost,vacho: Add forked...

Issue #3114588 by Antonnavi,geek-merlin,anruether,andypost,vacho: Add forked domain_menu_access as a sub module
parent b7439e49
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@
 */

use Drupal\Core\Access\AccessResult;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Form\FormStateInterface;
+8 −2
Original line number Diff line number Diff line
@@ -74,8 +74,14 @@ class DomainMenuAccessMenuBlock extends SystemMenuBlock implements ContainerFact
    if (!$this->isDomainRestricted($menu_name)) {
      return parent::build();
    }
    if ($this->configuration['expand_all_items']) {
      $parameters = new MenuTreeParameters();
      $active_trail = $this->menuActiveTrail->getActiveTrailIds($menu_name);
      $parameters->setActiveTrail($active_trail);
    }
    else {
      $parameters = $this->menuTree->getCurrentRouteMenuTreeParameters($menu_name);

    }
    // Adjust the menu tree parameters based on the block's configuration.
    $level = $this->configuration['level'];
    $depth = $this->configuration['depth'];