Implements \Drupal\serialization\EntityResolver\EntityResolverInterface::resolve().
Overrides EntityResolverInterface::resolve
public function resolve(NormalizerInterface $normalizer, $data, $entity_type) {
foreach ($this->resolvers as $resolver) {
if ($resolved = $resolver
->resolve($normalizer, $data, $entity_type)) {
return $resolved;
}
}
return NULL;
}