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.
Hello,
I have some custom behaviors. Currently, ECK features does not add the modules implementing behaviors as dependent. I also found this comment in eck_entity_type_features_export()
function eck_entity_type_features_export()
...
// @todo We need to add dependencies on the modules implementing the
// property behaviors currently they are all implemented by ECK but in the
// future, people might have their custom behaviors.. or we might have
// behaviors provided by contrib.
Would this be the right way to do it?
+ load all "property_behavior" plugins
+ load the entity type by name
+ loop trough all entity properties and add the modules implementing those properties as dependent
If the above is correct I could start working on a patch.
Are there any plans of implementing this?
Comment | File | Size | Author |
---|---|---|---|
#2 | eck-features_module_dependency_custom_behaviors-#2323753-#1.patch | 2.26 KB | mihai_brb |
Comments
Comment #1
fmizzell CreditAttribution: fmizzell commentedI think you would want to load the entity type first. In that object you will have properties and behaviors info. I am pretty sure that ctools plugins give us the info about which module is implementing the plugin/behavior, and we can add the dependent modules from there.
A patch would be greatly appreciated @mihai_brb :)
Comment #2
mihai_brb CreditAttribution: mihai_brb commentedHere's a patch that worked for me.