You are here

public function DisplayPluginBase::setCurrentPath in Search API 8

Sets the current path service.

Parameters

\Drupal\Core\Path\CurrentPathStack $current_path: The new current path service.

Return value

$this

File

src/Display/DisplayPluginBase.php, line 82

Class

DisplayPluginBase
Defines a base class from which other display classes may extend.

Namespace

Drupal\search_api\Display

Code

public function setCurrentPath(CurrentPathStack $current_path) {
  $this->currentPath = $current_path;
  return $this;
}