public function DropDown::changeWidgetCallback in Entity Browser 8
Same name and namespace in other branches
- 8.2 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\WidgetSelectorCode
public function changeWidgetCallback(array &$form, FormStateInterface $form_state) {
return $form;
}