You are here

protected function FormBuilderFormBaseTest::eArray in Form Builder 7

1 call to FormBuilderFormBaseTest::eArray()
FormBuilderFormBaseTest::test_getElementsInPreOrder in tests/FormBuilderFormBaseTest.php

File

tests/FormBuilderFormBaseTest.php, line 181

Class

FormBuilderFormBaseTest

Code

protected function eArray($type, $id, $key, $weight = 0, $parent_id = FORM_BUILDER_ROOT) {
  return array(
    '#type' => $type,
    '#key' => $key,
    '#form_builder' => array(
      'element_id' => $id,
      'parent_id' => $parent_id,
    ),
    '#weight' => $weight,
  );
}