You are here

public static function EntityBrowserEditForm::widgetSelectorAjaxCallback in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 src/Form/EntityBrowserEditForm.php \Drupal\entity_browser\Form\EntityBrowserEditForm::widgetSelectorAjaxCallback()

AJAX callback for returning new widget selector configuration.

File

src/Form/EntityBrowserEditForm.php, line 360

Class

EntityBrowserEditForm
Class EntityBrowserEditForm.

Namespace

Drupal\entity_browser\Form

Code

public static function widgetSelectorAjaxCallback($form, $form_state) {
  $form['widget_selector_wrapper']['widget_selector_configuration']['#open'] = TRUE;
  return $form['widget_selector_wrapper']['widget_selector_configuration'];
}