Large Factory Floor
Began
Dependencies

This module serves as the superstructure for formfactorykits module. It provides a simple service which can load an existing $form array, append FormFactoryKit objects & return a modified $form array.

For more examples about usage, please take a look at formfactorykits module.

Form Factory

public function buildForm(array $form, FormStateInterface $form_state) {
  $factory = $this->formFactoryService->load($form);
  $k = $this->formFactoryKitsService;

  $factory->append($k->text())
    ->append($k->submit());

  return $factory->getForm();
}