New answers tagged

0 votes

TypeError on "drush config-export"

This issue can happen if the export directory does not have the write permissions. I just created a folder with write permissions and I was able to successfully export the configurations using drush ...
user avatar
0 votes

How do I create a configuration schema of type array?

I've upvoted and accepted the answer by 4uk4, since it answers my question as it was originally asked. And I also agree with the recently added notion: "It's hard to tell what the OP wants." ...
user avatar
  • 14.8k
1 vote
Accepted

How do I create a configuration schema of type array?

This is an example for a structured array schema: /config/schema/mymodule.schema.yml mymodule.settings: type: config_object label: 'My schema' mapping: mymodule_mystring: type: string ...
user avatar
  • 89.2k
0 votes

How to create a field with hook_update?

In my case I already had the configuration in my sync folder $config_storage = new FileStorage('../config/sync'); foreach ([ 'field.storage.paragraph.field_button_style', 'field.field....
user avatar
0 votes

Is there a way to clone a content type and its fields?

Best way to do this in my opinion is through the config import approach. Here's a step by step guide: Search for your content type's name in your config folder: Copy all these config files to a new ...
user avatar
0 votes

where are menu item configurations stored?

While parent menus are considered config, the items inside each menu are considered content. https://www.drupal.org/project/content_sync allows you to export/import content as .yml files in a way ...
user avatar
1 vote

After installing webform, unable to use composer

When you install the Webform module with composer, there are two parts: Webform module and its submodules Various libraries for additional features (these are installed by merge) It seems like ...
user avatar
1 vote

Is the config object adapted to store datas from many users ( for the purpose of a subscription custom module )?

Configuration defines your site. Users are not configuration, so neither would per-user settings be configuration. If you need to save data per user, you can use the user.data service.
user avatar
  • 15k

Top 50 recent answers are included