From a9b3b28d001941921aa70d37fdc87c758a163a44 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 05 Jun 2026 16:47:03 +0000
Subject: [PATCH] =Some hefty changes to FeedBlock. Transitioning to loading first page in php to save on extra requests. Got a bit to do yet, but I have to work on Northeh for a bit here.
---
inc/registrar/fields/GroupedField.php | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/inc/registrar/fields/GroupedField.php b/inc/registrar/fields/GroupedField.php
index 99a8211..b82c322 100644
--- a/inc/registrar/fields/GroupedField.php
+++ b/inc/registrar/fields/GroupedField.php
@@ -13,12 +13,18 @@
{
foreach ($fields as $name => $config) {
$this->fields[$name] = match ($config['type']) {
- 'upload', 'image', 'gallery' => new Upload($name, $config),
+ 'upload', 'image', 'gallery' => new UploadField($name, $config),
'checkbox', 'radio', 'select', 'set' => new OptionsField($name, $config),
- 'repeater', 'group', 'tagList' => new GroupedField($name, $config),
- 'selector', 'taxonomy', 'user', 'post' => new TaxonomyField($name, $config),
+ 'repeater' => new RepeaterField($name, $config),
+ 'tagList' => new TagListField($name, $config),
+ 'group' => new GroupedField($name, $config),
+ 'selector', 'taxonomy', 'user', 'post' => new SelectorField($name, $config),
default => new Field($name, $config),
};
}
}
+ public function getFields():array
+ {
+ return $this->fields;
+ }
}
--
Gitblit v1.10.0