You are here

protected function Page::defineOptions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page::defineOptions()
  2. 9 core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page::defineOptions()

Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase:defineOptions().

Overrides PathPluginBase::defineOptions

File

core/modules/views/src/Plugin/views/display/Page.php, line 142

Class

Page
The plugin that handles a full page.

Namespace

Drupal\views\Plugin\views\display

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['menu'] = [
    'contains' => [
      'type' => [
        'default' => 'none',
      ],
      'title' => [
        'default' => '',
      ],
      'description' => [
        'default' => '',
      ],
      'weight' => [
        'default' => 0,
      ],
      'enabled' => [
        'default' => TRUE,
      ],
      'menu_name' => [
        'default' => 'main',
      ],
      'parent' => [
        'default' => '',
      ],
      'context' => [
        'default' => '',
      ],
      'expanded' => [
        'default' => FALSE,
      ],
    ],
  ];
  $options['tab_options'] = [
    'contains' => [
      'type' => [
        'default' => 'none',
      ],
      'title' => [
        'default' => '',
      ],
      'description' => [
        'default' => '',
      ],
      'weight' => [
        'default' => 0,
      ],
    ],
  ];
  return $options;
}