You are here

public static function FormBuilderLoader::instance in Form Builder 7

Get a singleton-like class instance.

10 calls to FormBuilderLoader::instance()
FormBuilderAdminTest::testChangingGroupsInElement in tests/FormBuilderAdminTest.php
Test: Elements can change the tabs displayed on their configure form.
FormBuilderExamplesTest::testOptionsConfiguration in examples/tests/FormBuilderExamplesTest.php
FormBuilderFormBaseTest::testSaveAndLoad in tests/FormBuilderFormBaseTest.php
@cover FormBuilderLoader::fromCache @cover FormBuilderFormBase::load @cover FormBuilderFormBase::save
FormBuilderFormBaseTest::test_form_builder_add_element in tests/FormBuilderFormBaseTest.php
Integration test _form_builder_add_element().
FormBuilderFormBaseTest::test_render_fieldset in tests/FormBuilderFormBaseTest.php
Integration test: Render textfield inside fieldset.

... See full list

File

./form_builder.classes.inc, line 23

Class

FormBuilderLoader
This class is a wrapper around all the hooks used for getting pluigns.

Code

public static function instance() {
  if (!static::$instance) {
    static::$instance = new static();
  }
  return static::$instance;
}