You are here

protected function FieldableEntityNormalizerTrait::getEntityTypeRepository in Drupal 9

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

Returns the entity type repository.

Return value

\Drupal\Core\Entity\EntityTypeRepositoryInterface The entity type repository.

File

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

Class

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

Namespace

Drupal\serialization\Normalizer

Code

protected function getEntityTypeRepository() {
  return $this->entityTypeRepository;
}