You are here

protected function FieldableEntityNormalizerTrait::getEntityTypeManager in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php \Drupal\serialization\Normalizer\FieldableEntityNormalizerTrait::getEntityTypeManager()
  2. 9 core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php \Drupal\serialization\Normalizer\FieldableEntityNormalizerTrait::getEntityTypeManager()

Returns the entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.

2 calls to FieldableEntityNormalizerTrait::getEntityTypeManager()
FieldableEntityNormalizerTrait::extractBundleData in core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php
Denormalizes the bundle property so entity creation can use it.
FieldableEntityNormalizerTrait::getEntityTypeDefinition in core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php
Gets the entity type definition.

File

core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php, line 182

Class

FieldableEntityNormalizerTrait
A trait for providing fieldable entity normalization/denormalization methods.

Namespace

Drupal\serialization\Normalizer

Code

protected function getEntityTypeManager() {
  return $this->entityTypeManager;
}