function Page::defineOptions

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page::defineOptions()
  2. 10 core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page::defineOptions()
  3. 11.x core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page::defineOptions()

Overrides PathPluginBase::defineOptions

File

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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.