You are here

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

Sets the entity type manager.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: An entity type manager.

File

src/Resource/EntityResourceBase.php, line 42

Class

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

Namespace

Drupal\jsonapi_resources\Resource

Code

public function setEntityTypeManager(EntityTypeManagerInterface $entity_type_manager) : void {
  $this->entityTypeManager = $entity_type_manager;
}