public function ViewsDisplayBase::getPath in Search API 8
Returns the base path used by this display.
Return value
string|null The base path for this display, or NULL if there is none.
Overrides DisplayPluginBase::getPath
File
- src/Plugin/ search_api/ display/ ViewsDisplayBase.php, line 59 
Class
- ViewsDisplayBase
- Provides a base class for Views displays.
Namespace
Drupal\search_api\Plugin\search_api\displayCode
public function getPath() {
  $path = parent::getPath();
  // Recreating a link when a contextual filter is used in the display's path
  // is not possible. So instead we return NULL, which forces most
  // implementations to use the current request's path instead.
  if (strpos($path, '%') !== FALSE) {
    return NULL;
  }
  return $path;
}