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