You are here

public function EntityAccessChecker::setLatestRevisionCheck in Drupal 8

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

Sets the media revision access check service.

This is only called when content_moderation module is installed.

Parameters

\Drupal\content_moderation\Access\LatestRevisionCheck $latest_revision_check: The latest revision access check service provided by the content_moderation module.

See also

self::$latestRevisionCheck

File

core/modules/jsonapi/src/Access/EntityAccessChecker.php, line 150

Class

EntityAccessChecker
Checks access to entities.

Namespace

Drupal\jsonapi\Access

Code

public function setLatestRevisionCheck(LatestRevisionCheck $latest_revision_check) {
  $this->latestRevisionCheck = $latest_revision_check;
}