You are here

public function FormBase::getElement in Form Builder 7.2

2 calls to FormBase::getElement()
Form::getComponents in modules/webform/src/Form.php
Get a list of component-arrays just like in $node->webform['components'].
FormBase::getElementsInPreOrder in src/FormBase.php
Get element objects in depth-first pre-order.

File

src/FormBase.php, line 223

Class

FormBase

Namespace

Drupal\form_builder

Code

public function getElement($element_id) {
  if (!isset($this->elementArrays[$element_id])) {
    return NULL;
  }
  $element =& $this->elementArrays[$element_id];
  return Loader::instance()
    ->getElement($this->formType, $this->formId, $element['#form_builder']['element_type'], $this, $element);
}