You are here

protected function MenuChildren::defineOptions in Views Menu Node Children Filter 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/argument/MenuChildren.php \Drupal\views_menu_children_filter\Plugin\views\argument\MenuChildren::defineOptions()
  2. 3.0.x src/Plugin/views/argument/MenuChildren.php \Drupal\views_menu_children_filter\Plugin\views\argument\MenuChildren::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 NumericArgument::defineOptions

File

src/Plugin/views/argument/MenuChildren.php, line 76

Class

MenuChildren
A filter to show menu children of a parent menu item

Namespace

Drupal\views_menu_children_filter\Plugin\views\argument

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['target_menus'] = [
    'default' => [],
  ];
  return $options;
}