function 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.