function 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 104  
Class
- EntityAccessChecker
 - Checks access to entities.
 
Namespace
Drupal\jsonapi\AccessCode
public function setLatestRevisionCheck(LatestRevisionCheck $latest_revision_check) {
  $this->latestRevisionCheck = $latest_revision_check;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.