protected function 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.

3 calls to PathPluginBase::isDefaultTabPath()
PathPluginBase::collectRoutes in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php
Adds the route entry of a view to the collection.
PathPluginBase::executeHookMenu in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php
Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::executeHookMenu().
PathPluginBase::getPath in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php
Return the base path to use for this display.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php, line 46
Contains \Drupal\views\Plugin\views\display\PathPluginBase.

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['type'] == 'default tab' && !empty($tab_options['type']) && $tab_options['type'] != 'none';
}