You are here

public static function EntityBrowserEditForm::submitUpdateDisplayPluginSettings in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 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\Form

Code

public static function submitUpdateDisplayPluginSettings($form, FormStateInterface $form_state) {
  $display = $form_state
    ->getValue('display');
  $form_state
    ->getFormObject()
    ->getEntity()
    ->setDisplay($display);
  $form_state
    ->setRebuild();
}