You are here

function VeflBasic::updateRegions in Views exposed form layout 8

Form submission handler for ContentTranslationHandler::entityFormAlter().

Takes care of content translation deletion.

File

src/Plugin/views/exposed_form/VeflBasic.php, line 123

Class

VeflBasic
Exposed form plugin that provides a basic exposed form with layout.

Namespace

Drupal\vefl\Plugin\views\exposed_form

Code

function updateRegions($form, FormStateInterface $form_state) {
  $view = $form_state
    ->get('view');
  $display_id = $form_state
    ->get('display_id');
  $display =& $view
    ->getExecutable()->displayHandlers
    ->get($display_id);

  // optionsOverride toggles the override of this section.
  $display
    ->optionsOverride($form, $form_state);
  $display
    ->submitOptionsForm($form, $form_state);
  $view
    ->cacheSet();
  $form_state
    ->set('rerender', TRUE);
  $form_state
    ->setRebuild();
}