You are here

public function DropDown::changeWidgetCallback in Entity Browser 8.2

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

AJAX callback to refresh form.

Parameters

array $form: Form.

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

Return value

array Form element to replace.

File

src/Plugin/EntityBrowser/WidgetSelector/DropDown.php, line 79

Class

DropDown
Displays widgets in a select list.

Namespace

Drupal\entity_browser\Plugin\EntityBrowser\WidgetSelector

Code

public function changeWidgetCallback(array &$form, FormStateInterface $form_state) {
  return $form;
}