public function UuidResolver::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/serialization/src/EntityResolver/UuidResolver.php \Drupal\serialization\EntityResolver\UuidResolver::__construct()
Constructs a UuidResolver object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
File
- core/
modules/ serialization/ src/ EntityResolver/ UuidResolver.php, line 31 - Contains \Drupal\serialization\EntityResolver\UuidResolver.
Class
- UuidResolver
- Resolves entities from data that contains an entity UUID.
Namespace
Drupal\serialization\EntityResolverCode
public function __construct(EntityManagerInterface $entity_manager) {
$this->entityManager = $entity_manager;
}