Thanks for working on this, is there anything I can do to help? Field collections is very important to me, I use it in pretty much every site I build.

Comments

larowlan’s picture

@jmuzz has been pushing this along
I'm planning on getting back to it in Feb.
I guess when there is something working, testing will be helpful

odegard’s picture

Great, I'll follow the progress carefully

Edit: Are you doing i conversion or a rewrite? Do you start with the D7 code or implement from scratch?

jmuzz’s picture

It is essentially a rewrite. The Entity API in Drupal 8 is completely different than in Drupal 7. The repository still has field_collection.module there for reference but most of what is working on Drupal 8 currently is in lib and only a few hooks in the .module file are still active.

A very minimal set of features is currently working. You can create a field collection and add fields to it. You can create field collection items on a node using the interface provided by the "links to field collections" formatter. Testing at this point would be unnecessary as there are still enough known issues to keep busy for a while. I want to try to solidify what is there by adding validation, fixing the error messages, and looking at nested field collections.

If you want to help develop on it you could look at adding one of the other formatters ("field collection items" or "fields only") or the embedded edit widget. Also none of the settings forms have been started on yet.

larowlan’s picture

At the moment it needs another rewrite after #2005716: Promote EntityType to a domain object

joehudson’s picture

Thanks for your work on this. As you may already know, installation is now broken on the latest dev build of drupal 8. On enabling field collection, I get a 'no current batch' error. then on refresh 'an error has occurred. please try again later'. In the drupal log there are lots of these errors:
"Drupal\Component\Plugin\Exception\PluginNotFoundException: The "field_entity" entity type does not exist. in Drupal\Core\Entity\EntityManager->getDefinition() (line 207 of C:\xampp\htdocs\...\core\lib\Drupal\Core\Entity\EntityManager.php)."

skh’s picture

Similar to OP, I use field_collection on the majority of projects. Certainly willing to help in anyway possible.

jmuzz’s picture

It is semi-functional again.

sachbearbeiter’s picture

same situation: "Field collections is very important to me, I use it in pretty much every site I build."

is there something i can do as a non-developer?
a small bounty maybe?
testing (is there already something to test because one year ago the state of dev was the following: "Testing at this point would be unnecessary as there are still enough known issues to keep busy for a while.")?

thanks and regards sb

jmuzz’s picture

I made a couple of updates and it should work with the latest dev of D8 right now. I'd say it is testable, though only basic stuff is working now. Revisions should be getting handled but they haven't been tested much and I haven't looked at multilanguage or migrations yet.