You are here

public function ResourceVersionRouteEnhancer::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/src/Revisions/ResourceVersionRouteEnhancer.php \Drupal\jsonapi\Revisions\ResourceVersionRouteEnhancer::__construct()

ResourceVersionRouteEnhancer constructor.

Parameters

\Drupal\jsonapi\Revisions\VersionNegotiator $version_negotiator_manager: The version negotiator.

File

core/modules/jsonapi/src/Revisions/ResourceVersionRouteEnhancer.php, line 78

Class

ResourceVersionRouteEnhancer
Loads an appropriate revision for the requested resource version.

Namespace

Drupal\jsonapi\Revisions

Code

public function __construct(VersionNegotiator $version_negotiator_manager) {
  $this->versionNegotiator = $version_negotiator_manager;
}