function EntityDenormalizerBase::__construct
Same name in other branches
- 8.9.x core/modules/jsonapi/src/Normalizer/EntityDenormalizerBase.php \Drupal\jsonapi\Normalizer\EntityDenormalizerBase::__construct()
- 10 core/modules/jsonapi/src/Normalizer/EntityDenormalizerBase.php \Drupal\jsonapi\Normalizer\EntityDenormalizerBase::__construct()
- 11.x 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\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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.