We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1c66b3 commit 9b3039dCopy full SHA for 9b3039d
wire/modules/Fieldtype/FieldtypeRepeater/FieldtypeRepeater.module
@@ -1325,6 +1325,22 @@ class RepeaterPageArray extends PageArray {
1325
1326
return $page;
1327
}
1328
+
1329
+ /**
1330
+ * Creates a new blank instance of a RepeaterPageArray. For internal use.
1331
+ *
1332
+ * Note that this method has no relation/similarity to the getNewItem()/getNew() methods.
1333
1334
+ * @param array $items Array of items to populate (optional)
1335
+ * @return WireArray
1336
1337
+ */
1338
+ public function makeNew() {
1339
+ $class = get_class($this);
1340
+ $newArray = new $class($this->parent, $this->field);
1341
+ return $newArray;
1342
+ }
1343
1344
1345
1346
0 commit comments