You are here

public function TopLevelSchemaLinkProviderBase::setCurrentRouteMatch in JSON:API Schema 8

Sets the current route match.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match:

File

src/Plugin/jsonapi_hypermedia/LinkProvider/TopLevelSchemaLinkProviderBase.php, line 49

Class

TopLevelSchemaLinkProviderBase
Class TopLevelSchemaLinkProviderBase.

Namespace

Drupal\jsonapi_schema\Plugin\jsonapi_hypermedia\LinkProvider

Code

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