You are here

public function AdvancedRouting::submitOptionsForm in Views Advanced Routing 8

Same name and namespace in other branches
  1. 2.x src/Plugin/views/display_extender/AdvancedRouting.php \Drupal\views_advanced_routing\Plugin\views\display_extender\AdvancedRouting::submitOptionsForm()

Overrides Drupal\views\Plugin\views\display\DisplayExtenderPluginBase::submitOptionsForm().

Overrides DisplayExtenderPluginBase::submitOptionsForm

File

src/Plugin/views/display_extender/AdvancedRouting.php, line 162
Contains \Drupal\views_test_data\Plugin\views\display_extender\DisplayExtenderTest.

Class

AdvancedRouting
Advanced route editor.

Namespace

Drupal\views_advanced_routing\Plugin\views\display_extender

Code

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