Problem/Motivation
In case patch in EntityReferenceFieldItemList::referencedEntities should return the translated entity is used, then it leads to an error when using err as follows,
Fatal error: Declaration of Drupal\entity_reference_revisions\EntityReferenceRevisionsFieldItemList::referencedEntities() must be compatible with Drupal\Core\Field\EntityReferenceFieldItemList::referencedEntities(?string $langcode = NULL) in /var/www/html/web/modules/contrib/entity_reference_revisions/src/EntityReferenceRevisionsFieldItemList.php on line 21
Steps to reproduce
Apply patch in - https://www.drupal.org/node/2915972
Try to visit a form where ERR fields is used.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork entity_reference_revisions-3320825
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
d34dman commentedI have trouble pushing the commit via git... so here is the patch
Comment #3
mkrizaj commentedHey,
You've missed adding logic to load a translatable entity, so I am adding a new patch.
Thanks,
Matic
Comment #4
mkrizaj commentedAdding fixes for drupal coding standards.
Comment #5
mkrizaj commentedAttaching new patch for latest version.
Comment #8
chetan 11 commentedplease check the above MR.
Comment #9
d34dman commented@mkrizaj,
The patch in #5 is same as the one posted in #1, could you explain why?
Comment #10
berdirComment #11
andreadruiz commentedHi all, I am adding the same patch but compatible with 8.x.1.x version. Thanks!