You are here

public function EntityAccessChecker::setMediaRevisionAccessCheck in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/src/Access/EntityAccessChecker.php \Drupal\jsonapi\Access\EntityAccessChecker::setMediaRevisionAccessCheck()

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

core/modules/jsonapi/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;
}