service jsonapi.entity_access_checker in JSON:API 8.2
Class
Drupal\jsonapi\Access\EntityAccessChecker1 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
View source
- class: Drupal\jsonapi\Access\EntityAccessChecker
- public: false
- arguments:
- - '@jsonapi.resource_type.repository'
- - '@router.no_access_checks'
- - '@current_user'
- - '@entity.repository'
- calls:
- - [setNodeRevisionAccessCheck, ['@?access_check.node.revision']]
- - [setMediaRevisionAccessCheck, ['@?access_check.media.revision']]
- - [setLatestRevisionCheck, ['@?access_check.latest_revision']]