Lines Matching refs:ModuleBlockInterface

26 use Fisharebest\Webtrees\Module\ModuleBlockInterface;  alias
56 * @return ModuleBlockInterface
58 public function treeBlock(ServerRequestInterface $request): ModuleBlockInterface
72 if ($module instanceof ModuleBlockInterface) {
86 * @return ModuleBlockInterface
88 …blic function userBlock(ServerRequestInterface $request, UserInterface $user): ModuleBlockInterface
101 if ($module instanceof ModuleBlockInterface) {
115 * @return ModuleBlockInterface
117 public function getBlockModule(Tree $tree, int $block_id): ModuleBlockInterface
119 …$active_blocks = $this->module_service->findByComponent(ModuleBlockInterface::class, $tree, Auth::…
127 if ($block instanceof ModuleBlockInterface) {
144 return $this->module_service->findByComponent(ModuleBlockInterface::class, $tree, $user)
145 ->filter(static fn (ModuleBlockInterface $block): bool => $block->isTreeBlock())
146 … ->mapWithKeys(static fn (ModuleBlockInterface $block): array => [$block->name() => $block]);
159 return $this->module_service->findByComponent(ModuleBlockInterface::class, $tree, $user)
160 ->filter(static fn (ModuleBlockInterface $block): bool => $block->isUserBlock())
161 … ->mapWithKeys(static fn (ModuleBlockInterface $block): array => [$block->name() => $block]);
197 … foreach ([ModuleBlockInterface::MAIN_BLOCKS, ModuleBlockInterface::SIDE_BLOCKS] as $location) {
198 … foreach (ModuleBlockInterface::DEFAULT_TREE_PAGE_BLOCKS[$location] as $block_order => $class) {
247 … foreach ([ModuleBlockInterface::MAIN_BLOCKS, ModuleBlockInterface::SIDE_BLOCKS] as $location) {
248 … foreach (ModuleBlockInterface::DEFAULT_USER_PAGE_BLOCKS[$location] as $block_order => $class) {
251 if ($module instanceof ModuleBlockInterface) {
277 … ->whereIn('location', [ModuleBlockInterface::MAIN_BLOCKS, ModuleBlockInterface::SIDE_BLOCKS])
294 ModuleBlockInterface::MAIN_BLOCKS => $main_block_ids,
295 ModuleBlockInterface::SIDE_BLOCKS => $side_block_ids,
334 … ->whereIn('location', [ModuleBlockInterface::MAIN_BLOCKS, ModuleBlockInterface::SIDE_BLOCKS])
351 ModuleBlockInterface::MAIN_BLOCKS => $main_block_ids,
352 ModuleBlockInterface::SIDE_BLOCKS => $side_block_ids,
388 …return $blocks->map(static fn (string $block_name): ModuleBlockInterface|null => $active_blocks->f…