Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Page.php

function Page::defineOptions

Overrides PathPluginBase::defineOptions

File

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

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal