You are here

public function EntityDenormalizerBase::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/Normalizer/EntityDenormalizerBase.php \Drupal\jsonapi\Normalizer\EntityDenormalizerBase::__construct()

Constructs an EntityDenormalizerBase object.

Parameters

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

\Drupal\Core\Entity\EntityFieldManagerInterface $field_manager: The entity field manager.

\Drupal\Core\Field\FieldTypePluginManagerInterface $plugin_manager: The plugin manager for fields.

File

core/modules/jsonapi/src/Normalizer/EntityDenormalizerBase.php, line 61

Class

EntityDenormalizerBase
Converts the Drupal entity object to a JSON:API array structure.

Namespace

Drupal\jsonapi\Normalizer

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $field_manager, FieldTypePluginManagerInterface $plugin_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->fieldManager = $field_manager;
  $this->pluginManager = $plugin_manager;
}