public static function EntityBrowserEditForm::submitUpdateSelectionDisplay in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/Form/EntityBrowserEditForm.php \Drupal\entity_browser\Form\EntityBrowserEditForm::submitUpdateSelectionDisplay()
AJAX submit callback for updating display.
File
- src/
Form/ EntityBrowserEditForm.php, line 394
Class
- EntityBrowserEditForm
- Class EntityBrowserEditForm.
Namespace
Drupal\entity_browser\FormCode
public static function submitUpdateSelectionDisplay($form, FormStateInterface $form_state) {
$selection_display = $form_state
->getValue('selection_display');
$form_state
->getFormObject()
->getEntity()
->setSelectionDisplay($selection_display);
$form_state
->setRebuild();
}