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.
I created a custom configEntityType to be used as a bundle for new config entities, and therefore extends ConfigEntityBundleBase.
As I don't want to export all fields of each bundle, I tried adding the config_export array to the annotation ( @see https://www.drupal.org/node/2481909 ), but without any results.
Head snippet below to illustrate :
/**
* Defines the Indicator type entity.
*
* @ConfigEntityType(
* config_prefix = "indicator_type",
* config_export = {
* 'label',
* 'formula'
* }
* )
*/
class IndicatorType extends ConfigEntityBundleBase implements IndicatorTypeInterface {
Problem IMO is that the config_export tag is only supported in the ConfigEntityType and not in the ConfigEntityBundle, which as far as I can see, does not extend the ConfigEntityType.
Not really sure how to approach this further. Any ideas?
Comments