You are here

protected function FormBaseTest::eArray in Form Builder 7.2

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

File

tests/FormBaseTest.php, line 183

Class

FormBaseTest

Namespace

Drupal\form_builder

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,
  );
}