You are here

public function DisplayPluginBase::hasPath in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::hasPath()

Checks to see if the display has a 'path' field.

This is a pure function and not just a setting on the definition because some displays (such as a panel pane) may have a path based upon configuration.

By default, displays do not have a path.

Overrides DisplayPluginInterface::hasPath

4 calls to DisplayPluginBase::hasPath()
DisplayPluginBase::getPath in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Returns the base path to use for this display.
DisplayPluginBase::usesExposedFormInBlock in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Checks to see if the display can put the exposed form in a block.
DisplayPluginBase::usesLinkDisplay in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Checks to see if the display has some need to link to another display.
DisplayPluginBase::validate in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Validate that the plugin is correct and can be saved.
1 method overrides DisplayPluginBase::hasPath()
PathPluginBase::hasPath in core/modules/views/src/Plugin/views/display/PathPluginBase.php
Checks to see if the display has a 'path' field.

File

core/modules/views/src/Plugin/views/display/DisplayPluginBase.php, line 669

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

public function hasPath() {
  return FALSE;
}