public function EntityDenormalizerBase::__construct in JSON:API 8.2
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
- src/
Normalizer/ EntityDenormalizerBase.php, line 61
Class
- EntityDenormalizerBase
- Converts the Drupal entity object to a JSON:API array structure.
Namespace
Drupal\jsonapi\NormalizerCode
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;
}