class RenderElementHelper (View source)

Provides functionality to process render elements.

Methods

alterElementInfo(array $info)

Alters the element type info.

static array
processElement(array $element, FormStateInterface $form_state, array $complete_form)

Process all render elements.

Details

alterElementInfo(array $info)

Alters the element type info.

Parameters

array $info

An associative array with structure identical to that of the return value of \Drupal\Core\Render\ElementInfoManagerInterface::getInfo().

static array processElement(array $element, FormStateInterface $form_state, array $complete_form)

Process all render elements.

Parameters

array $element

An associative array containing the properties and children of the element. Note that $element must be taken by reference here, so processed child elements are taken over into $form_state.

FormStateInterface $form_state

The current state of the form.

array $complete_form

The complete form structure.

Return Value

array

The processed element.