You are here

public function LinkProviderManager::setCurrentRouteMatch in JSON:API Hypermedia 8

Set the current route match.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

File

src/Plugin/LinkProviderManager.php, line 94

Class

LinkProviderManager
Manages discovery and instantiation of resourceFieldEnhancer plugins.

Namespace

Drupal\jsonapi_hypermedia\Plugin

Code

public function setCurrentRouteMatch(RouteMatchInterface $route_match) {
  $this->currentRouteMatch = $route_match;
}