You are here

protected function AdvancedRouting::defineOptions 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::defineOptions()

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides PluginBase::defineOptions

File

src/Plugin/views/display_extender/AdvancedRouting.php, line 37
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

protected function defineOptions() {
  $options = parent::defineOptions();

  // YAML.
  $options['route'] = [
    'default' => '',
  ];
  return $options;
}