Storage not created after install with config

Created on 21 November 2024, 3 months ago

Problem/Motivation

We are installing our Drupal systems via modules and config in this modules. So we have a custom-paragraphs-module which depends on paragraphs and entity_type_behaviors and has all config in /config/install
After install the module all fields are shown correctly in the forms - but no values are saved. After edited a paragraphs bundle via ui the storage is created and values can be saved.

Steps to reproduce

Create custom module which depends on paragraphs and entity_type_behaviors and ship exported config in config/install dir.

Proposed resolution

We added in this custom module in hook_install():

  // Create storage for entity_type_behaviors.
  /** @var \Drupal\entity_type_behaviors\Storage\EntityTypeBehaviorStorageHandler 
  $entityTypeBehaviorStorageHandler */
  $entityTypeBehaviorStorageHandler = \Drupal::service('entity_type_behaviors.storage.handler');
  $entityTypeBehaviorStorageHandler->updateBaseFieldConfiguration('paragraph');

Maybe you will add this to your README.md.

Feature request
Status

Active

Version

2.1

Component

Documentation

Created by

🇩🇪Germany jan kellermann

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024