function Page::defineOptions
Same name in other branches
- 9 core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page::defineOptions()
- 10 core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page::defineOptions()
- 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 130
Class
- Page
- The plugin that handles a full page.
Namespace
Drupal\views\Plugin\views\displayCode
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.