Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

3
votes
0answers
67 views

Benefit of config entities over regular config entries?

In Drupal 8 it is possible to store configuration in "config entities". However, the same can also be achieved with non-entity config entries. E.g. one example for a config entity schema, from core....
3
votes
0answers
937 views

How do I translate theme settings?

How do you translate custom theme settings in Drupal 8? I use hook_form_system_theme_settings_alter to add custom settings to a theme. One setting is the text string (e.g. 'Menu') to display beside ...
2
votes
0answers
176 views

Configuration sync with deleted field

I have a field field.storage.node.field_create_ic created with type 'calendar_download_type' and it is one of the contributed module (ics_field). Now, in my local environment I deleted the field and ...
2
votes
0answers
159 views

Exported field collection field has null UUID

In D8, I have a configuration management error. I have created a field named 'field_icon_link' of type “Field Collection”. I export my config. If I try to import this config I get a UUID error. ...
2
votes
0answers
136 views

What does a 'reset' refer to with Drupal?

In the docs for the State API, the term 'reset' is used, without any reference as to what a reset is: use State API to store transient information, that is okay to lose after a reset. I've spent ...
2
votes
0answers
274 views

Update schema.yml variable type: string to integer

I would like to update my module schema variable from string to integer. mymodule.settings: type: config_object label: 'Module settings' mapping: identity: type: string -> integer ...
2
votes
0answers
1k views

How to optimize the unserialization of “variables” cache value

As we all know, the whole variable table is being cached in the drupal cache system and is being extracted into global $conf variable in each invoke. In one of our production site with the domain ...
1
vote
0answers
45 views

Difference between field and field storage in configuration type?

I am exporting a content type and field associated with the synchronize option available in Drupal 8. I exported and imported the YAML code for content type successfully. When I was about to do the ...
1
vote
0answers
51 views

Prevent block config from being exported?

In Drupal 8, how can I prevent block instance config from being exported? I want it to just be ignored.
1
vote
0answers
108 views

Add permission to existing role in custom module using configuration

Permissions may be added to existing roles programatically as described in this answer. However, I would like to put that into configuration. I can create a role calling king by putting user.role....
1
vote
0answers
95 views

Properly export text format and editor settings

I'm trying to export the CKeditor settings and restricted_html settings but it's partially imported in the end. I'm exporting the editor.editor.restricted_html.yml and the filter.format....
1
vote
0answers
34 views

Drupal 8 config yml differences due to ordering/positioning of elements

Got a really annoying thing related to config-import/export, due to the positioning of elements in the yml file the config never syncs between production server and development server. For example: ...
1
vote
0answers
107 views

PHPUnit Test run Error with ConfigFactory

I'm running an error with the following test I wrote including some config. I don't know if my test is even properly written so any advice in improving that code is welcomed. Since my test is not ...
1
vote
0answers
227 views

How can locally deleted fields also be deleted on production?

We are using D8's Configuration Management for our site. When we delete fields in our local development environment the corresponding content type and field yml files are updated to reflect the change....
1
vote
0answers
525 views

How should I solve a module load order problem in a custom install profile?

I'm building a custom install profile for Drupal 8.4. It uses the new core Media module, and includes custom config files for the entity forms for media's image and file entities. One of those changes ...
1
vote
0answers
418 views

Using config split to keep dev modules separate: how to manage enabled/disabled states?

I'm using the config split documentation to exclude dev module configuration on my site. I made a configuration split that blacklists the following modules: Devel Kint Field UI Menu UI Views UI I ...
1
vote
0answers
149 views

How to map (yml) D7 nodes with terms, images, comments and references for migrating to D8?

To better understand how a custom content migration really works apart from all the tutorials showing how to install Drupal and press the migrate button with a 3 lines test import file or endless ...
1
vote
0answers
19 views

How do I store editor-configurable snippets of configuration?

The Drupal 8 site I'm building contains some custom forms and pages. On those pages, bits information are inserted that must remain editable by the site editors. In D7, I would probably have used the ...
1
vote
0answers
72 views

Creating config entities in a functional browser test

I am extending Drupal\Tests\BrowserTestBase to create a functional test which attempts to edit and save a config entity. Creating this via MyEntity::create($data)->save(); has weird effects: They ...
1
vote
0answers
65 views

Rebuild config module

I have create file config in a module /custom /module_name /config /install /module_name.settings.yml this is ...
1
vote
0answers
359 views

Change existing field definition

I have Drupal8 site where client suddenly wanted to change some field from 2 decimal scale to 3. To X.XXX that is. Now I'm aware that changing field definition when there's stuff in db is not ...
1
vote
0answers
8 views

Why can I not see a field which depends on two other fields related by the OR operator?

I'm using the Conditional Fields module and I have a field that I can set while editing my custom content type. That field is dependent to two other fields which are related by the operator OR. The ...
1
vote
0answers
397 views

How to use third party settings to store an array of values

I'm making a module and almost complete, but I can't seem to get third party settings to save. Here is my schema.yml: editor.editor.*.third_party.ckeditor_styles: type: mapping label: 'CKEditor ...
1
vote
0answers
140 views

Change block configuration before render the block programmatically

I have a view that display some nodes and some of this nodes have a menu voice connected to them with sub menus. main menu: -node 1 [mid:407] --node 2 --node 3 -node 4 [mid:219] --node 5 I want ...
1
vote
0answers
34 views

Define config schema on an installation profile

I have a custom installation profile, which has a profiles/foo/config/install/foo.settings.yml. I try to declare a schema in profiles/foo/config/schema/foo.schema.yml but it seems that file is not ...
1
vote
0answers
40 views

D8: Multilingual configuration and dynamic content

I'm currently working on a multilingual Drupal 8 project that also takes advantage of D8's new CMI system (Buzzwords: Content Manangement Initiative). Is there some sort of best practice here? I ...
1
vote
0answers
70 views

Configuration export not working for sub-theme that has underscore in name

Had a strange issue today where I have a sub-theme (bootstrap) called 'rrre_theme'. I can confirm I have not made any errors throughout my sub-theme in terms of naming. I position blocks and generally ...
1
vote
0answers
67 views

How to quickly configure allowed content for panelizer

I am developing site which will have about 15 content types such as news, events, course etc. I need to configure allowed only specific content for panelizer. When I go to allowed content option there ...
1
vote
0answers
695 views

“PluginNotFoundException” when saving a view

I download the backup of my front page view. Then I decide to remove it (using the UI) and then added back again using the configuration import. Then I try to edit that view and does not let me save ...
1
vote
0answers
39 views

CiviCRM on Drupal: Array to string conversion error in BAO setting.php in Display preferences

I'm receiving this error after a fresh install of civicrm-4.4.17 on drupal-7.38. While attempting to go through the configuration checklist I also noticed that the items were not turning green after ...
1
vote
0answers
134 views

Invalid Variable: drupal_private_key

I just updated my live Drupal install and now I receive the following notice in the admin: Found one invalid variable When I go to /admin/reports/variablecheck it shows that the variable ...
1
vote
0answers
152 views

Set a custom module variable based on webform nid

I am working on a custom module that hooks into Webform in various ways. Right now I am saving variables using system_settings_form and understand that these will go into a Drupal variables table ...
1
vote
0answers
181 views

How to use context module instead of panel module?

I am unable to set user permission on particular section of panel. For example I have used 3 column panel layout for particular page and want to set view permission to only one column out of three to ...
0
votes
0answers
11 views

Config split settings file generated into split directory

Drupal 8.7 I have a multisite split. The config_split.config_split.<sitename>.yml files are supposed to go into the config/default directory. For some reason when updating a split on one of my ...
0
votes
0answers
13 views

'drupal ci' command doesn't work with config split and config ignore modules, is there an easy fix?

After drupal update from 8.6.x to 8.7.1, the config_ignore module stopped working with 'drupal ci' command. I tried config split, it doesn't work also. Is there an easy way to fix it?
0
votes
0answers
37 views

How to handle config changes on core update?

I have an 8.6.15 site managed by composer and drush. The db and config exports are in sync. Roling our new features using drush cim on production works fine. I now update core to 8.7 by running ...
0
votes
0answers
35 views

How to enable custom module by default?

How do I enable custom module by default?
0
votes
0answers
16 views

Data storage for custom config-entity sequence type

Using Drupal 8 I've got a custom content type application and a ConfigEntityType application_type for bundles of it. I need each bundle to store a list of strings when newly created/edited. E.g. ...
0
votes
0answers
27 views

Module enable / disable is slow using drush cim

I have 2 drupal sites which takes a high time to enable or disable modules, while other sites are faster. It is true these slow sites are more complex: it has a lot more of modules. Is there any ...
0
votes
0answers
37 views

Use a custom Table/Storage for a Custom Field

I want to create a DR8 content field, which has no field tables, and passes the save and load mechanisms to a custom table. Is there a way to do this? I've been able to prevent saving with: class ...
0
votes
0answers
17 views

Configuration translate Form Access Denied

This questions has repeat several times, but I face similar issues. Here are configuration yml information webform_protected_downloads.configsettings.yml token_text: 'test' langcode: en ...
0
votes
0answers
22 views

How do you add a field to a node type form?

I would like to add a boolean field to all node type forms and save it's value in config. I found this tutorial, but the code formatting is really bad. http://www.jaypan.com/tutorial/drupal-8-...
0
votes
0answers
34 views

What If I Need Conditional/Overriding (synchronized) .yml Config Install With a Custom Module?

With D8, the appropriate method for adding fields during install with a custom module is with the config system and .yml files in a config/install directory. I have a module for user theming I like ...
0
votes
0answers
22 views

Custom module - views config dependencies

I have created a module which having two submodules. submodule-1 submodule-2 Within submodule-1 I am defining multiple Views fields and filters based on a custom entity type. Within submodule-2 I ...
0
votes
0answers
16 views

Proper Schema file for integer and select

We have a custom module, mymodule that has an admin form where it stores field of type: number and select. I need to create a mymodule/config/schema/mymodule.schema.yml file, but don't know what to ...
0
votes
0answers
61 views

What is the difference in State API and Config API?

It is a bit confusing to understand the difference in State API and Config API in Drupal 8. I went through the documentation of both on drupal.org but it is not clear to me yet. Do we define both ...
0
votes
0answers
18 views

Configuration not saved on server

I am building an Acquia hosted Drupal 8 site. I saved config files in /config/sync folder and it's defined in settings.php. Everything works fine. After then, I pushed up the files using git in dev ...
0
votes
0answers
18 views

Is it possible to use an API to update CSS Injector rules?

I want to maintain a record of changes to CSS Injector rules by editing the CSS code in a node and using rules to update the relevant CSS injector rules. With the help of the Diff module I should ...
0
votes
0answers
78 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 ...
0
votes
0answers
67 views

How can you unset entity view display component with config override?

I have an entity view display configuration where I would like to "unset" a component (one of the field). I implement the ConfigFactoryOverrideInterface with the right service configuration. Is there ...