You are here

protected function Page::defineOptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 123
Contains \Drupal\views\Plugin\views\display\Page.

Class

Page
The plugin that handles a full page.

Namespace

Drupal\views\Plugin\views\display

Code

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