You are here

protected function AdvancedRouting::defineOptions in Views Advanced Routing 2.x

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

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;
}