Problem/Motivation
I am using the Default Content Deploy module to export entities into code and I'm running into a normalization issue with taxonomy terms. I get the following error when exporting a top-level term (no parent).
Error: Call to a member function getEntityType() on null in Drupal\hal\Normalizer\EntityReferenceItemNormalizer->normalize() (line 86 of /var/www/html/dv13.openplus.ca/html/core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php)
This is being caused by an existing drupal/core patch included with WxT. I have updated this patch to fix the issue and now want to update the patch in WxT.
Steps to reproduce
Use Drupal's serializer service against a top-level term using the hal_json format.
Example:
$term = \Drupal\taxonomy\Entity\Term::load('50');
$output = \Drupal::service('serializer')->serialize($term, 'hal_json');
dpm($output);
Comments
Comment #2
smulvih2Updated core patch in WxT.
Comment #3
sylus commentedCommitted and attributed :)