function PathPluginBase::isDefaultTabPath

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

Determines if this display's path is a default tab.

Return value

bool TRUE if the display path is for a default tab, FALSE otherwise.

2 calls to PathPluginBase::isDefaultTabPath()
PathPluginBase::getPath in core/modules/views/src/Plugin/views/display/PathPluginBase.php
Returns the base path to use for this display.
PathPluginBase::getRoute in core/modules/views/src/Plugin/views/display/PathPluginBase.php
Generates a route entry for a given view and display.

File

core/modules/views/src/Plugin/views/display/PathPluginBase.php, line 98

Class

PathPluginBase
The base display plugin for path/callbacks. This is used for pages and feeds.

Namespace

Drupal\views\Plugin\views\display

Code

protected function isDefaultTabPath() {
    $menu = $this->getOption('menu');
    $tab_options = $this->getOption('tab_options');
    return $menu && $menu['type'] == 'default tab' && !empty($tab_options['type']) && $tab_options['type'] != 'none';
}

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