You are here

public function ViewsAttachLibraryDisplayExtender::submitOptionsForm in Views Attach Library 8

Same name and namespace in other branches
  1. 8.x src/Plugin/views/display_extender/ViewsAttachLibraryDisplayExtender.php \Drupal\views_attach_library\Plugin\views\display_extender\ViewsAttachLibraryDisplayExtender::submitOptionsForm()
  2. 2.0.x src/Plugin/views/display_extender/ViewsAttachLibraryDisplayExtender.php \Drupal\views_attach_library\Plugin\views\display_extender\ViewsAttachLibraryDisplayExtender::submitOptionsForm()

Handle any special handling on the validate form.

Overrides DisplayExtenderPluginBase::submitOptionsForm

File

src/Plugin/views/display_extender/ViewsAttachLibraryDisplayExtender.php, line 51

Class

ViewsAttachLibraryDisplayExtender
Views Attach Library display extender plugin.

Namespace

Drupal\views_attach_library\Plugin\views\display_extender

Code

public function submitOptionsForm(&$form, FormStateInterface $form_state) {
  if ($form_state
    ->get('section') == 'attach_library') {
    $this->options['attach_library'] = $form_state
      ->cleanValues()
      ->getValue($section);
  }
}