Linked Questions

10
votes
1answer
4k views

How to remove mymodule configurations on uninstall [duplicate]

I have created a custom module and created a yml file to create a menu system.menu.custom_menu.yml id: custom_menu label: 'Custom menu' description: 'Custom menu.' langcode: en locked: true ...
1
vote
3answers
884 views

PreExistingConfigException: Configuration objects provided by progweb_migration already exist in active [duplicate]

I'm playing with migrations from D7 to D8 and I've found that, when you register a module with a migration, if you disable it, next time you enable the module gets stuck on this: [vagrant@devbox] /[.....
0
votes
1answer
1k views

How do I get rid of “Mismatched entity and/or field definitions” [duplicate]

After installing mailchimp successfully and uninstalling succesfully I am left with Mismatched entity and/or field definitions The following changes were detected in the entity type and field ...
13
votes
5answers
8k views

Unable to install … already exist in active configuration

On Drupal 8.1 I keep running in those kind of messages when I try to activate a custom module or a custom feature that makes some modification to the basic page. (add fields). It is really annoying.....
2
votes
2answers
1k views

Is there a way with drush or console to delete all active config with a certain prefix?

I'm currently trying to migrate a site with drush migrate-upgrade --configure-only ... and copying the export migrate_plus.migration_*.yml into a custom module for tweaking. Now I want to enable that ...
1
vote
1answer
1k views

Migrate Away from Pantheon [closed]

I have recently been hired as a web dev for a small business. The previous web dev team did not have much server experience and decided to use Pantheon for our Drupal 8 site. For the most part, the ...
1
vote
2answers
491 views

Remove default configuration on uninstalling module

During install we create content types, field storages and vocabularies. When uninstalling none of these things are uninstalled. I know that we can set all the configuration to have the module as ...
0
votes
1answer
575 views

Programing date custom field into content type

I'm building a module that creates a content type when it installs. I already have my content type, let's call it MyContentType and I have a field body that I created based on Drupal documentation (...
2
votes
1answer
262 views

In custom install profile How to delete the “Footer” menu that core provides by default?

I am writing custom Drupal 8 install profile to be used in our organization. The core creates the "Footer" menu as default system menu listed in menu admin page. I want to delete or disable this ...
0
votes
1answer
313 views

How to remove field from form and configuration?

We have a custom module, mymodule that has a form, mymoduleForm with two fields: enabled content types and urls. We no longer need the enabled content types field on the form and want to remove it ...
0
votes
1answer
141 views

Error after installing module twice: Configuration object already exist

I've followed How to create views programmatically in Drupal 8, but as I asked in this topic, my view doesn't appear in my list. When I install my module twice (Enable -> Uninstall -> Enable), I have ...
0
votes
0answers
125 views

How to delete configurations when module is uninstalled?

We have a custom module mymodule that has the following structure. It basically has a configuration object that we are using in a mymodule_preprocess_node() call to do some logic and display certain ...