You are here

public function FormComponentInterface::render in Flexiform 8

Render the element.

Parameters

array $form: The form array.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

\Drupal\Core\Render\RendererInterface $renderer: The form renderer for setting cacheability metadata.

4 methods override FormComponentInterface::render()
CustomTextComponent::render in src/Plugin/FormComponentType/CustomTextComponent.php
Render the component in the form.
ExtraFieldComponent::render in src/Plugin/FormComponentType/ExtraFieldComponent.php
Render the component in the form.
FieldWidgetComponent::render in src/Plugin/FormComponentType/FieldWidgetComponent.php
Render the component in the form.
FormElementComponent::render in src/Plugin/FormComponentType/FormElementComponent.php
Render the component in the form.

File

src/FormComponent/FormComponentInterface.php, line 23

Class

FormComponentInterface
Interface for form component plugins.

Namespace

Drupal\flexiform\FormComponent

Code

public function render(array &$form, FormStateInterface $form_state, RendererInterface $renderer);