When configuring default image on a field and viewing the configuration page, the follow error is thrown.
Error: Call to undefined method Drupal\Core\Entity\EntityTypeManager::loadEntityByUuid() in Drupal\svg_image_field\Plugin\Field\FieldType\SvgImageFieldItem->defaultImageForm() (line 238 of modules/contrib/svg_image_field/src/Plugin/Field/FieldType/SvgImageFieldItem.php).
loadEntityByUuid() is not found on EntityTypeManager, instead its a method on EntityManager
See https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | svg_image_field-EntityManager-2960985-2.patch | 569 bytes | jasonawant |
Comments
Comment #2
jasonawantHere's a patch.
Comment #3
carsteng commentedBug confirmed...
EntityManager is marked as deprecicated.
Another solution would be:
Comment #4
dunot commentedComment #6
dunot commentedComment #7
jasonawantHi dunot, thanks for committing!
Could you change the commit message to give me authorship and thus issue credit? I would really appreciate it!
See the following the links. Thanks, Jason.
Comment #8
dunot commentedjasonawant, carstenG said right that
> EntityManager is marked as deprecicated
and I don't know how to change commit
that already is in remote repo.
And even if we can do it,
it would be bad consequences
for the module have been cloned.