You are here

public function Single::getForm in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/EntityBrowser/WidgetSelector/Single.php \Drupal\entity_browser\Plugin\EntityBrowser\WidgetSelector\Single::getForm()

Returns widget selector form.

Return value

array Form structure.

Overrides WidgetSelectorInterface::getForm

File

src/Plugin/EntityBrowser/WidgetSelector/Single.php, line 22

Class

Single
Displays only first widget.

Namespace

Drupal\entity_browser\Plugin\EntityBrowser\WidgetSelector

Code

public function getForm(array &$form, FormStateInterface &$form_state) {
  return [];
}