Lines Matching refs:module
543 return static fn (ModuleInterface $module): string => $module->title();
560 …->filter(static fn (ModuleInterface $module): bool => $module->accessLevel($tree, $interface) >= A…
625 … ->map(static function (ModuleInterface $module) use ($module_info): ModuleInterface {
626 $info = $module_info->get($module->name());
629 $module->setEnabled($info->status === 'enabled');
631 … if ($module instanceof ModuleFooterInterface && $info->footer_order !== null) {
632 $module->setFooterOrder((int) $info->footer_order);
635 if ($module instanceof ModuleMenuInterface && $info->menu_order !== null) {
636 $module->setMenuOrder((int) $info->menu_order);
639 … if ($module instanceof ModuleSidebarInterface && $info->sidebar_order !== null) {
640 $module->setSidebarOrder((int) $info->sidebar_order);
643 if ($module instanceof ModuleTabInterface && $info->tab_order !== null) {
644 $module->setTabOrder((int) $info->tab_order);
647 $module->setEnabled($module->isEnabledByDefault());
650 'module_name' => $module->name(),
651 'status' => $module->isEnabled() ? 'enabled' : 'disabled',
655 return $module;
669 $module = Registry::container()->get($class);
671 $module->setName($name);
673 return $module;
702 $module = self::load($filename);
704 if ($module instanceof ModuleCustomInterface) {
705 $module->setName('_' . basename(dirname($filename)) . '_');
707 return $module;
713 … ->mapWithKeys(static fn (ModuleCustomInterface $module): array => [$module->name() => $module]);
741 … return static fn (ModuleInterface $module): bool => $include_disabled || $module->isEnabled();
755 return static fn (ModuleInterface $module): bool => $module instanceof $interface;
824 …->filter(static fn (ModuleInterface $module): bool => $module instanceof ModuleLanguageInterface &…
834 ->first(static fn (ModuleInterface $module): bool => $module->name() === $module_name);
848 ->filter(static function (ModuleInterface $module): bool {
850 if ($module instanceof $interface) {
869 ->map(static fn (ModuleInterface $module): string => $module->name());
881 foreach ($this->all() as $module) {
883 if ($module instanceof ModuleThemeInterface && $module !== $current_theme) {
887 $module->boot();