We no longer need to list entity_reference as a dependency because entity_reference is no longer a module. With entity_reference listed as a dependency for entity_reference_revisions, drush will enter an infinite install loop. So we should remove the dependency.
But this issue has a larger impact as we not recieve this error upon adding fields to new paragraph types:
Fatal error: Class 'Drupal\entity_reference\ConfigurableEntityReferenceItem' not found in /var/www/drupal/modules/contrib/entity_reference_revisions/src/Plugin/Field/FieldType/EntityReferenceRevisionsItem.php on line 44
I believe the related change record for this late-break change that got in right before RC1 is this:
...
Actually there is no change record but here's the issue that made the change:
#2429191: Deprecate entity_reference.module and move its functionality to core
The prescribed solution for the error we got is to replace Drupal\entity_reference\ConfigurableEntityReferenceItem with Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | d8_entity_reference-2583737-9-interdiff.txt | 1.39 KB | sasanikolic |
| #11 | d8_entity_reference-2583737-9.patch | 1.76 KB | sasanikolic |
| #7 | d8_entity_reference-2583737-7.patch | 374 bytes | sasanikolic |
Comments
Comment #2
cosmicdreams commentedComment #3
cosmicdreams commentedComment #4
cosmicdreams commentedI'll try to submit a patch for this tomorrow but if I simply make the replacement above in drupal/modules/contrib/entity_reference_revisions/src/Plugin/Field/FieldType/EntityReferenceRevisionsItem.php it works again.
Comment #5
berdirYes, it is deprecated. But it should still work fine, the module is hidden and it should be possible to install it.
If it's not possible with drush, then that is IMHO a bug in drush.
Doesn't mean that we shouldn't fix it, of course.
Comment #6
berdirSo.. that seems to work fine for me?
Comment #7
sasanikolic commentedComment #9
cosmicdreams commented#7: The fix is one step more than that.
Comment #10
cosmicdreams commented#6: Yes, without the replacement of ConfigurableEntityReferenceItem it does install properly. HOWEVER, as soon as you try to add a field to a paragraph it blows up.
Comment #11
sasanikolic commentedSecond try. :)
Comment #12
berdirOnly if you manage to install entity_reference_revisions without entity_reference (with the patch in #6 for example).
Otherwise it still works, using the deprecated module and class. That was the point of keeping the module hidden like that.
We have passing tests in #2582961: Broken in Drupal 8 RC1 that proves that :)
But we want to get rid of deprecated usage, so no need to argue about this further ;)
Comment #14
cosmicdreams commented@Berdir, Why does #11 pass the tests and #7 didn't?
RTBC++
Comment #16
jeroen.b commentedThanks, pushed to dev!
Comment #18
ws.agency commentedCan we get new RC released? Current one is unusable because of this issue!
Comment #19
miro_dietikerERR long released RCs since this issue was committed.