symbiotic/ui_form

Templates for `symbiotic/form` package.

1.4.2 2023-04-12 21:24 UTC

This package is auto-updated.

Last update: 2024-11-13 01:15:55 UTC


README

Templates for "symbiotic/form" package.

Instead of this template package, you can use your own. To use your template package, you need to subscribe to the "\Symbiotic\Form\FormBuilder" event and perform a replacement:

// Global
class MyFormTemplates
{
  public function handle(\Symbiotic\Form\FormBuilder $formBuilder)
  {
     $formBuilder::setTemplatesPackageId('form_templates_package');
  }
}

Or:

$global = \Symbiotic\Form\FormBuilder::getTemplatesPackageId();
\Symbiotic\Form\FormBuilder::setTemplatesPackageId('form_templates_package');

/// render form with other templates

\Symbiotic\Form\FormBuilder::setTemplatesPackageId($global);