for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace StoutLogic\AcfBuilder;
class RepeaterBuilder extends FieldsBuilder
{
public function __construct($name, $args = [])
$this->config = array_merge(
[
'key' => 'field_'.$name,
'name' => $name,
'label' => $this->generateLabel($name),
'type' => 'repeater',
],
$args
);
}
public function build()
$config = parent::build();
$config['sub_fields'] = $config['fields'];
unset($config['fields']);
return $config;
public function endRepeater()
return $this->getParentContext();