You are here

public function WidgetInterface::getForm in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/WidgetInterface.php \Drupal\entity_browser\WidgetInterface::getForm()

Returns widget form.

Parameters

array $original_form: Entire form bult up to this point. Form elements for widget should generally not be added directly to it but returned from funciton as a separated unit.

\Drupal\Core\Form\FormStateInterface $form_state: Form state object.

array $additional_widget_parameters: Additional parameters that we want to pass to the widget.

Return value

array Form structure.

1 method overrides WidgetInterface::getForm()
WidgetBase::getForm in src/WidgetBase.php
Returns widget form.

File

src/WidgetInterface.php, line 89

Class

WidgetInterface
Defines the interface for entity browser widgets.

Namespace

Drupal\entity_browser

Code

public function getForm(array &$original_form, FormStateInterface $form_state, array $additional_widget_parameters);