Questions tagged [configuration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
0answers
51 views

How do I force config overrides to refresh?

I've setup a system of dynamic config overrides using a service tagged with config.factory.override. This override overrides the system.site name configuration. I have a form that upon submission ...
0
votes
0answers
17 views

Config schema type for array-or-string?

I have just written a "complicated" @Filter plugin which does this: public function process($text, $langcode) { return new FilterProcessResult(str_replace($this->settings['from'], $this->...
0
votes
1answer
21 views

How to save configs in BrowserTestBase?

In a functional test I try to test a functionality after changing the module configuration: public function setUp() { parent::setUp(); ... $config = \Drupal::configFactory()->getEditable('...
-4
votes
0answers
30 views

Completely disable account and IP lockout

I am trying to disable the automatic account lockout and IP ban for the Drupal 8 login form for a CTF challenge I'm creating. The Flood control module is incompatible. The Login security module didn'...
0
votes
0answers
32 views

Expected argument of type “string”, “array” given in Symfony\Component\Validator\Constraints\LengthValidator->validate()

I have created a custom field type module install in Drupal version 8.8.5 then goto the content type and add field my_custom_field then fill the label and set field settings then after showing this ...
0
votes
0answers
32 views

Decoupled modules and Configuration Management: how to properly work with them

How do you build decoupled modules that modify configuration of things like content types? I've come with a possible approach that I'd like to share to see if anybody can find design flaws or better ...
1
vote
1answer
38 views

Change existing configuration at theme installation

I am creating a custom Drupal 8 theme, and I want to change the image style of the indexed article content of the frontpage - only the article content type. To do that properly - avoiding using CSS ...
0
votes
0answers
14 views

Acquia BLT - How to put remote config_split config values back into version control

I have been using Acquia BLT and config split. I understand how to set up the config splits and deploy them using BLT. What I don't understand is - once I have a split in place, say on dev, and I've ...
0
votes
0answers
10 views

How to migrate Contributed Module Configuration from one environment to another one?

I have 5 different Development servers and there is one configuration related to contributed module called External links, now I am trying to create feature for that config so that I can easily roll ...
0
votes
0answers
10 views

Custom Block Config - Accepting array of objects

I have built a component following the docs but am wanting to add configure to allow the user to add a series of objects that each contain a 'title' (a text field) and a 'content' (a list of text ...
0
votes
1answer
22 views

How to save values on each form submit without overriding saved datas?

i am having a form with 2 values to save on submit: public function submitForm(array &$form, FormStateInterface $form_state) { if ($_POST['op'] == 'Import Accounts') { $filter = $...
1
vote
0answers
24 views

How to delete content entity type programmatically on uninstall?

I am trying to delete a configuration from a module in hook_uninstall. My module creates a content type bundle which has to be deleted. I tried to use an approach described here: How to delete a ...
0
votes
1answer
48 views

Troubles with external configuration

I'm working in the creation of a custom profile. When the installation is already finished, on the configuration module /admin/config/development/configuration appears the following warning The ...
0
votes
1answer
36 views

Create configuration storage programmattically for list_string

On a paragraph type, I have a field I want to migrate to a new field of type "list_string". To do that in the deployment and like our automatic deployment begin by an update of the database follow by ...
0
votes
0answers
50 views

How can I change the site settings email using Drush?

Env: D8/drush-9.5.2 I need to use drush to change the site details (Home->Administration->Configuration->System) Site name, Slogan, and Email address. I found the configuration key by running: ...
1
vote
1answer
34 views

Config Export: How to store default value of taxonomy field?

When I define a field with taxonomy term fields, I can set a default value depending on the available terms. Since the terms themselves are content, they are not stored via configuration management. ...
5
votes
1answer
173 views

How does the new config_exclude_modules setting work exactly?

Drupal 8.8 introduced a new setting: https://www.drupal.org/node/3079028 By adding these lines to your settings.local.php I expected the modules and their configuration to be excluded from config ...
0
votes
0answers
27 views

Drupal config or routes stays inactive until I disable/re-enable related modules

I know this might be a broad question but maybe someone had the same issue before. Here is the issue: I have installed some contributed module, (e.g Rules); I have configured some rules; Exported ...
1
vote
1answer
28 views

More information than standard “Site Details”, also to be available as tokens [closed]

Is there a way to add additional fields to the config/system/site-information area such as business owner, "business location", "hours of operation", "phone number", etc. I would then like to be able ...
0
votes
0answers
26 views

Updating config schema: Module configuration not automatically reflecting most recent state

I am trying to do a really low-hassle update of config schema for my module: I updated files form: modules/custom/mymod/config/schema/mymod.schema.yml data: modules/custom/mymod/config/install/mymod....
0
votes
0answers
34 views

Prevent update hook from running until config imported?

I have added a new field to an existing content type and want to set its default value as well as all existing nodes of that type. To do that, I have added an update hook in my module that will batch ...
0
votes
0answers
12 views

Drupal: script all admin settings for site cloning

I am a newbie Drupal user here, tasked with an exam taking site for a school. I have run a docker container with version 7.69 and installed Quiz and few other modules, made a lot of settings via an ...
0
votes
0answers
38 views

Configuration split in multilingual and multi domain sites

I want to run 30 Drupal 8 websites, every website runs on different domain. The sites are similar with small differences. The websites are multilingual. Some of them have 2 languages, other have ...
0
votes
0answers
43 views

Configuration Import Error

I have a drupal8 in local system. I want to import my production environment configurations into my local. So i am running drush cim -y I got the following error. Unexpected error during import ...
1
vote
1answer
39 views

How to use a set of global and per subsite permissions in a multisite installation?

Use case: I have a multisite installation in which I want to define a global configuration to be available to all subsites. I define this configuration in the default site. For this example let's say ...
0
votes
0answers
22 views

Testing a function which save some configuration - error called set on null

I have a function which does 2-3 things, one of the activity is to save the configuration. function processProps($data) { $config = $this->configFactory->getEditable('mymodule.settings'); $...
0
votes
0answers
76 views

How to prevent an 'Attempt to create a field field_description that does not exist on entity type group'?

When cron runs I see a notice in the dblog. Drupal\Core\Field\FieldException: Attempt to create a field field_description that does not exist on entity type group. in Drupal\field\...
1
vote
1answer
176 views

Installing a site from existing configuration [closed]

I tried importing a configuration after installing Drupal 8 using the standard installation profile but was getting into errors related to the installation profile being already present. I need a ...
1
vote
2answers
137 views

XAMPP and Acquia Dev Desktop [closed]

I installed XAMPP on my local machine to use it for Drupal. But all the navigation between all the localhost websites are really slow, no matter if it's a brand new vanilla Drupal website or if it's a ...
0
votes
0answers
64 views

Slow localhost Drupal websites and drush

I installed XAMPP on a new laptop to use it for Drupal. All the websites on my localhost are extremely slow, even a brand new vanilla Drupal website. It takes 5-10 seconds to go from one page to the ...
1
vote
1answer
190 views

Can't sync site config from git, entities exist of type x

For whatever reason I seem unable to find a good resource to explain syncing the actual structure of a site (like blocks and configs). I'm using git currently and am doing local development using ...
1
vote
2answers
108 views

How do I enable a module by exporting the configuration?

I enabled these core modules: Language, Content translation, Config translation, and Interface translation. I exported the core.extensions.yml file, but when I placed the same file in the development ...
-2
votes
3answers
109 views

Where is the temporary directory defined in the code?

I wonder where the tmp dir is set in the code of Drupal 8. Indeed the upload_tmp_dir value is not set in the php.ini and I have no access to change it. Where in the code the value is defined and ...
0
votes
1answer
49 views

Is there a way to selectively export specific relevant configuration into custom modules?

I'm learning D8 and gaining familiarity with the configuration management aspects of drush. All my configuration is exported into my config/sync directory and I cherry picked the relevant files and ...
0
votes
0answers
97 views

Can't extend schema of an existing `config_object`

Use-case: Module A defines the following schema: module_a.schema.yml module_a.settings.api: type: config_object label: API settings mapping: store: type: string label: Store ...
0
votes
0answers
73 views

Ignore custom block field content (settings) with config_ignore

I am trying to ignore the content of some fields in a custom defined block plugin. In my block plugin (class MyAwesomeBlock extends BlockBase implements BlockPluginInterface { ... }) I've declared ...
1
vote
0answers
33 views

How to log configuration changes in a sensible way?

In order to log simple configuration changes like a site-name change, contributed modules like contrib_log work fine. It just diffs the changes files in active configuration and logs it. But when ...
1
vote
1answer
56 views

Configuration syncronization not importing everything

I have a remote server which I initially setup with a default Drupal 8.7.7 install. I have since been building the site on my local development server and would now like to transfer the developments ...
0
votes
1answer
48 views

Building a non-config, programmatically-created, semi-dynamic, semi-manual menu

We have a custom entity called "Topic". With this entity, users can build topics and reference other content to "belong" to the topic. We also have a requirement where, whenever a user creates a topic,...
0
votes
0answers
40 views

drush cex re-creates files in config/sync while they already exist in module config folder

Having a config split which says that the location/configuration of the split/module is located under /sites/all/modules/custom/module/config/optional After it got imported with drush csim our_split ...
0
votes
1answer
76 views

Failed to import Bootstrap Paragraph sub module configuration

I tried to implement the Hero with Xeno Hero in the Bootstrap Paragraphs in Drupal 8. I encountered an error when I tried to import the config of the sub module. I am not sure if I do it the right ...
0
votes
0answers
26 views

Why doesn't Synchronize - Export - Full archive work in my production site?

On my production site, when I go to Synchronize - Export - Full archive (i.e. http://mysite/admin/config/development/configuration/full/export), I get a blank web page, nothing in my temp folder and ...
2
votes
1answer
69 views

How can I programmatically import configuration?

I try to import specific configuration. I use this : $config_path = config_get_config_directory(CONFIG_SYNC_DIRECTORY); $source = new FileStorage($config_path); $config_storage = \Drupal::service('...
0
votes
0answers
333 views

The provided host name is not valid for this server even after updating settings.php

I'm running in to the error message The provided host name is not valid for this server. I found the previous solution here however even once updating my settings.php file I'm continuing the hit this ...
0
votes
1answer
31 views

Where do I put configuration files for testing?

Hopefully, this will be a simple question. I am writing a kernel test for a class, called FooConfig, that reads from a configuration file. For the purpose of facilitating this test, I need a ...
0
votes
1answer
133 views

How to install and enable a default and admin theme in a Drupal 8 install profile with just YML (without using hook_install() or a .profile file)?

I want to avoid using hook_install() so I can install from configuration. I'd like my install profile to use seven for the admin theme, and my custom theme rutherford for the default/main frontend ...
0
votes
0answers
40 views

Default Paragraph Config Per Content Type

We're using a paragraph for the hero/header of our site. Within the paragraph are a number of different toggles to define various options for the hero. I'd like to have it so that if the user is ...
0
votes
1answer
41 views

Where is the configuration actually saved in the system?

I am new to Drupal 8. I installed the Drupal webform module. I am able to export the configuration file but unable to figure out where the configuration is actually is saved in the Drupal system.
1
vote
0answers
31 views

Where to describe a State API variable?

We can describe the configuration variables in the *.schema.yml files but there is a place to describe the State API variables? I searched in the Core for some State variables and I don't find a ...
0
votes
2answers
54 views

How can I move a node type's configuration into a custom module?

I still a bit new to D8 and loving the new configuration management system that has replaced Features. I am looking for the best technique for containing particular configurations in my custom ...

1
2 3 4 5
14