public function ViewsDisplayBase::setCurrentRouteMatch in Search API 8
Sets the current route match service.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $current_route_match: The new current route match service.
Return value
$this
File
- src/
Plugin/ search_api/ display/ ViewsDisplayBase.php, line 51
Class
- ViewsDisplayBase
- Provides a base class for Views displays.
Namespace
Drupal\search_api\Plugin\search_api\displayCode
public function setCurrentRouteMatch(RouteMatchInterface $current_route_match) {
$this->currentPath = $current_route_match;
return $this;
}