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,
It looks like storage_api doesn't export the storage class for a field in features.
Here's what I see in a feature file:
'settings' => array(
'default_image' => 0,
'storage_class' => array(
'class_id' => '2',
'current_class_id' => '2',
),
'uri_scheme' => 'storage-field-cast-image',
),
This is using a class_id, which can change between environments. It doesn't look like there's a way to export the class with the feature.
Thanks,
Eric
Comments
Comment #1
paulmckibbenI would love to see the storage classes and containers exportable in a feature. Any chance this can happen?
Comment #2
dwatts3624 CreditAttribution: dwatts3624 commented+1 on this. Our dev team would be open to helping with this with some direction.
Comment #3
Andre-B@dwatts3624 https://drupal.org/node/928026 might be a head start for getting stuff exportable. But I am not that deep into storage_api to help you further.
edit: wrong link.
Comment #4
Andre-B@dwatts3624 has there been any progress so far?
Comment #5
jiv_e CreditAttribution: jiv_e commentedComment #6
PatchRanger CreditAttribution: PatchRanger as a volunteer commentedMay be it is better to turn Storage API models into entities (https://www.drupal.org/project/entity)? It will automatically (as far as I understand it) make them exportable via Features.
Comment #7
Perignon CreditAttribution: Perignon commentedA lot of work is necessary to improve the exportability of Storage API. To do this, we will be looking at making more use of single fields in the DB tables and Drupal variables.