Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since Drupal 8's custom blocks are entities, will the upgrade path for bean to Drupal 8, be to convert the Beans into Drupal 8 Custom blocks? If this is the case (and I for one would prefer it), would this depricate Bean for Drupal 8?
The official upgrade path is using the Bean Migrate module, which converts Bean entities to Content Block entities.
Comments
Comment #1
indytechcook CreditAttribution: indytechcook commentedYes, I worked with Kris to make sure that bean would be deprecated in Drupal 8. The block type plugin concept is the same as what blocks are in D8 which replaces core bean. Custom blocks are fieldable entities also in D8 which replaces the functionality of bean_admin_ui.
Comment #2
saltednutThat's been the goal all along!
A likely contrib candidate for d8 could be a migration extension for migrate_d2d that helps slurp in Beans, Fieldable Panels Panes and Boxes from a D7 site and turn them into Core block entities. If anyone would like to work on this together, or talk about the future of D7 bean plugins as D8 block plugins, we're in #drupal-beans...
Comment #3
kreynen CreditAttribution: kreynen at University of Colorado Boulder commentedDid the bean migrate conversation ever go anywhere? I found https://www.drupal.org/node/2141211, but with RC1 "coming soon" it would be really helpful to consolidate the D8 info and share this on the Bean project page.
Comment #4
saltednutSince we just use blocks in D8 and have need for a Bean module this makes sense. A bean from D7 to D8 custom block migration can be written but mileage may vary - - I'd check out what's working in migrate for d2d and see if those migrations could be of reference.
Comment #5
saltednutSorry, meant to re-open this not fix it!
Comment #6
ron_s CreditAttribution: ron_s commentedI think this is a great idea. Looks like some progress has been made on this thread? Although not sure of the current status.
https://www.drupal.org/node/2295973
Comment #7
a-fro CreditAttribution: a-fro commentedDoes anyone know if progress is being made on a migration path? Or if anyone has done it using custom migrations?
Comment #8
DamienMcKennaI would suggest approaching this from the perspective of the Bean module's two main use cases:
We're really eager to see sites upgrading from D7 to share code that helps towards either of these use cases, I think some collaboration would go a long way for everyone.
Comment #9
nico.pinos CreditAttribution: nico.pinos commentedIn case it helps somebody, I have an example of a Bean migration here https://github.com/npinos/d7migrate
Comment #10
DamienMcKennaI've been working on something similar for the ECK module: https://www.drupal.org/project/migrate_eck2blocks
This uses some hooks to change field definitions to block content types, along with some plugins. I think a similar approach could be used for Bean.
Comment #11
Wim LeersMy colleague @huzooka has been working on a comprehensive migration for
bean
: https://www.drupal.org/project/bean_migrate. It's already working well for monolingualbean
s, he's currently working on finishing multilingual migrations. Including correct block placement migrations.Comment #12
Wim LeersComment #13
DamienMcKennaThat's fantastic, amazing work @huzooka!
I'm going to document that as the official upgrade path.
Comment #14
DamienMcKenna