You are here

public function EntityAccessChecker::setMediaRevisionAccessCheck in JSON:API 8.2

Sets the media revision access check service.

This is only called when media module is installed.

Parameters

\Drupal\media\Access\MediaRevisionAccessCheck $media_revision_access_check: The media revision access check service.

File

src/Access/EntityAccessChecker.php, line 135

Class

EntityAccessChecker
Checks access to entities.

Namespace

Drupal\jsonapi\Access

Code

public function setMediaRevisionAccessCheck(MediaRevisionAccessCheck $media_revision_access_check) {
  $this->mediaRevisionAccessCheck = $media_revision_access_check;
}