You are here

service jsonapi.entity_access_checker in JSON:API 8.2

Class

Drupal\jsonapi\Access\EntityAccessChecker
1 string reference to jsonapi.entity_access_checker
EntityResourceTest::createEntityResource in tests/src/Kernel/Controller/EntityResourceTest.php
Creates an instance of the subject under test.

File

./jsonapi.services.yml
jsonapi.services.yml

View source
  1. class: Drupal\jsonapi\Access\EntityAccessChecker
  2. public: false
  3. arguments:
  4. - '@jsonapi.resource_type.repository'
  5. - '@router.no_access_checks'
  6. - '@current_user'
  7. - '@entity.repository'
  8. calls:
  9. - [setNodeRevisionAccessCheck, ['@?access_check.node.revision']]
  10. - [setMediaRevisionAccessCheck, ['@?access_check.media.revision']]
  11. - [setLatestRevisionCheck, ['@?access_check.latest_revision']]