There were errors validating the config synchronization

Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization. [error] Entities exist of type Custom block and Custom block type ADV. These entities need to be deleted before importing. in Drupal\Core\Config\ConfigImporter->validate() (line 750 of /var/www/html/web/core/lib/Drupal/Core/Config/ConfigImporter.php). The import failed due for the following reasons: [error] Entities exist of type Custom block and Custom block type ADV. These entities need to be deleted before importing.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum
  • Drupal9: Saving form as node in SQL (custom module example)

    i develop a custom module with forms to save data in SQL-Datebase. I want to use for that the node-structure.

    Normal SQL-savings for example table works but not for the node-tables. Any idea what is going wrong?

    This ist my Code for saving, which works in non-node-tables:

    public function submitForm(array &$form, FormStateInterface $form_state) { $connection = \Drupal::service('database');
    $result = $connection->insert('node.node__body')
      ->fields(['body_value'])
      ->values([
        'body_value' => 'text for body',
        ])
      ->execute();
    
    $form_state->setRedirect('modulname.form'); 
    }
    
  • How do you adjust the width of a custom composite's element? (Drupal 9 webform)

    A webform I am customizing has 9 elements in a composite. Since there are too many of them, the composite is exceeding the fieldset you will see below.

    This is the picture of the composite

    I would like to shrink the size of the composite and adjust the widths of some of the elements (like Amount since it shouldn't take that many space, and maybe make Type element wider).

    I followed along this solution but the size would not change even when I added

    wrapper_attributes:
      width: 20%
    

    Does anyone have experience with adjusting the widths of composite's elements ?