Closed folbert closed 6 years ago
To make it possible to do something like
$text_field = (new Select()) ->setRequired(true) ->setChoices( [ 'option1' => 'Option 1', 'option2' => 'Option 2' ] );
Yes. For functions used for setting ACF settings, it makes sense to make them chainable to make it easier to create fields and to require less code for creating fields and adding them to field groups.
To make it possible to do something like