public function ResourceVersionRouteEnhancer::__construct in Drupal 9
Same name and namespace in other branches
- 8 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\RevisionsCode
public function __construct(VersionNegotiator $version_negotiator_manager) {
$this->versionNegotiator = $version_negotiator_manager;
}