/webtrees/app/ |
H A D | Menu.php | 37 private array $submenus; variable in Fisharebest\\Webtrees\\Menu 53 array $submenus = [] argument 60 ->setSubmenus($submenus); 168 $this->submenus[] = $menu; 180 return $this->submenus; 190 public function setSubmenus(array $submenus): self argument 192 $this->submenus = $submenus;
|
/webtrees/tests/app/ |
H A D | MenuTest.php | 40 $submenus = [new Menu('Submenu')]; 41 $menu = new Menu('Test!', 'link.html', 'link-class', ['foo' => 'bar'], $submenus); 47 self::assertSame($submenus, $menu->getSubmenus()); 93 $submenus = [ 98 $return = $menu->setSubmenus($submenus); 101 self::assertSame($submenus, $menu->getSubmenus());
|
/webtrees/app/Module/ |
H A D | CloudsTheme.php | 58 $submenus = $menu->getSubmenus(); 60 if ($submenus !== []) { 62 … array_unshift($submenus, new Menu($menu->getLabel(), '#', '', ['onclick' => 'return false;'])); 63 $menu->setSubmenus($submenus);
|
H A D | ListsMenuModule.php | 81 …$submenus = $this->module_service->findByComponent(ModuleListInterface::class, $tree, Auth::user()) variable in Fisharebest\\Webtrees\\Module\\ListsMenuModule 86 if ($submenus->isEmpty()) { 90 return new Menu(I18N::translate('Lists'), '#', 'menu-list', [], $submenus->all());
|
H A D | TreesMenuModule.php | 91 $submenus = []; variable in Fisharebest\\Webtrees\\Module\\TreesMenuModule 98 …$submenus[] = new Menu(e($menu_tree->title()), route(TreePage::class, ['tree' => $menu_tree->name(… 101 return new Menu(I18N::translate('Family trees'), '#', 'menu-tree', [], $submenus);
|
H A D | ChartsMenuModule.php | 83 …$submenus = $this->module_service->findByComponent(ModuleChartInterface::class, $tree, Auth::use… variable in Fisharebest\\Webtrees\\Module\\ChartsMenuModule 87 if ($submenus->isEmpty()) { 91 …rn new Menu(I18N::translate('Charts'), '#', 'menu-chart', ['rel' => 'nofollow'], $submenus->all());
|
H A D | ReportsMenuModule.php | 87 …$submenus = $this->module_service->findByComponent(ModuleReportInterface::class, $tree, Auth::us… variable in Fisharebest\\Webtrees\\Module\\ReportsMenuModule 91 if ($submenus->isEmpty()) { 95 … new Menu(I18N::translate('Reports'), '#', 'menu-report', ['rel' => 'nofollow'], $submenus->all());
|
H A D | ClippingsCartModule.php | 142 $submenus = [ variable in Fisharebest\\Webtrees\\Module\\ClippingsCartModule 162 …$submenus[] = new Menu(I18N::translate('Add to the clippings cart'), $add_route, 'menu-clippings-a… 166 $submenus[] = new Menu(I18N::translate('Empty the clippings cart'), route('module', [ 172 $submenus[] = new Menu(I18N::translate('Download'), route('module', [ 179 return new Menu($this->title(), '#', 'menu-clippings', ['rel' => 'nofollow'], $submenus);
|
H A D | ModuleThemeTrait.php | 443 …$submenus = $themes->map(static function (ModuleThemeInterface $theme) use ($current_theme): Menu { variable 452 return new Menu(I18N::translate('Theme'), '#', 'menu-theme', [], $submenus->all());
|
/webtrees/ |
H A D | phpstan-baseline.neon | 4066 …message: '#^Parameter \#5 \$submenus of class Fisharebest\\Webtrees\\Menu constructor expects arra… 4216 …message: '#^Parameter \#5 \$submenus of class Fisharebest\\Webtrees\\Menu constructor expects arra… 5476 …message: '#^Parameter \#5 \$submenus of class Fisharebest\\Webtrees\\Menu constructor expects arra… 5680 …message: '#^Parameter \#5 \$submenus of class Fisharebest\\Webtrees\\Menu constructor expects arra… 6760 …message: '#^Parameter \#5 \$submenus of class Fisharebest\\Webtrees\\Menu constructor expects arra… 6898 …message: '#^Parameter \#5 \$submenus of class Fisharebest\\Webtrees\\Menu constructor expects arra…
|