You are here

public function EntityResourceBase::setEntityAccessChecker in JSON:API Resources 8

Sets the entity access checker.

Parameters

\Drupal\jsonapi\Access\EntityAccessChecker $entity_access_checker: An entity access checker.

File

src/Resource/EntityResourceBase.php, line 52

Class

EntityResourceBase
Defines basic functionality for an entity-oriented JSON:API Resource.

Namespace

Drupal\jsonapi_resources\Resource

Code

public function setEntityAccessChecker(EntityAccessChecker $entity_access_checker) : void {
  $this->entityAccessChecker = $entity_access_checker;
}