- Issue created by @Jon Pugh
- πΊπΈUnited States Jon Pugh Newburgh, NY
An update....
In the new 2.x branch I added Bundle classes and a way for SiteProperty plugins to define what bundles they attach to.
For example, PhpSite bundle class has php_version. That way all bundles that extend other classes also inherit their property fields.
To do this I had to stop using bundleFieldDefinitions and add everything via
site_entity_bundle_field_info()
andsite_entity_field_storage_info
.This had a very strange side effect:
Installing the module no longer installs the fields at all. I can't figure out why. That's why I'm marking this a critical beta blocker.
- πΊπΈUnited States Jon Pugh Newburgh, NY
Woah.
Figured it out.
My bundle field hack loads all fields from all bundles in site_entity_field_storage_info()
However on install, bundles are not available. I will be filing an issue about this with core.
So, to work around this, I finally stole code from devel_entity_updates and got it working in site_install().
It's ugly, but it works.
- Status changed to Needs work
over 1 year ago 3:16pm 28 August 2023