Loading modules/domain_menu_access/domain_menu_access.module +0 −1 Original line number Diff line number Diff line Loading @@ -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; Loading modules/domain_menu_access/src/Plugin/Block/DomainMenuAccessMenuBlock.php +8 −2 Original line number Diff line number Diff line Loading @@ -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']; Loading Loading
modules/domain_menu_access/domain_menu_access.module +0 −1 Original line number Diff line number Diff line Loading @@ -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; Loading
modules/domain_menu_access/src/Plugin/Block/DomainMenuAccessMenuBlock.php +8 −2 Original line number Diff line number Diff line Loading @@ -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']; Loading