Questions tagged [configuration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
44 views

How can I add a new field from config inside hook_update_N?

I have to add taxonomy by php code. Taxonomy has to got 2 fields. I added new function to test_taxonomy.install, and it seems to work: function taxonomy_update_8805() { $config_path = 'modules/...
-2
votes
0answers
23 views

How do I insert Webform record values ​into a field? [closed]

I am working with Drupal 8.9. I installed the Webform module and created a form (Country) which has the following values. 1 | United States 2 | Spain 3 | Mexico I created another form (Region) with ...
0
votes
0answers
37 views

Amend footer information

My company site has moved from D7 to D8 this morning. It all looks great (and so much easier to use!), but I can't see how to amend a footer? One of our office buildings changed its name during the ...
0
votes
0answers
27 views

How to save and load configuration data of type sequence

I have a theme "basic_theme". I want to add some settings to this theme, in particular config menu_search_fields is a sequence of data, each entry has 3 informations (field, weight and uuid)....
1
vote
0answers
24 views

Having multiple active config splits causes main configuration directory to be ignored

I'm trying to have a config setup for a multisite, so that I have following config directories: default - common config dev - split for dev environment local - split for local environment <site>...
0
votes
0answers
36 views

What is the best way to export a content type and its fields? [duplicate]

How can we export a content type, including its fields, and import it into staging or production?
0
votes
0answers
31 views

Issue using Config Split on content types

I'm working on setting up Config Split to share content type config between a number of multisites. Currently each site has its own config for various content types but, since they should be identical ...
1
vote
1answer
18 views

Set disabled cache but it's not working

I'm a newbie in Drupal site development and I'm using Drupal 9.x. In directory web/sites/default I have 2 files: settings.php if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) { ...
3
votes
2answers
114 views

How can I export only one paragraph type, the fields, the form settings and the display settings?

Some days ago I've exported and imported a full configuration with drush cex and drush cim. What are the steps to export 1 paragraph type including the fields, form settings, display settings etc ... ...
1
vote
1answer
37 views

How to override the system timezone in settings.php?

I'm trying to override the site's timezone in settings.local.php. Looking at the config file, this should be simple: $ more system.date.yml country: default: '' first_day: 0 timezone: default: UTC ...
0
votes
1answer
21 views

Favicon settings missing on subtheme config

Using Drupal 8 W3CSS Theme 8.x-1.17, I created a subtheme. The subtheme works fine, but on the settings page, the entire #edit-favicon div is hidden; style="display: none" has been added. I ...
1
vote
1answer
64 views

How to have config from a ConfigFormBase immediately take effect without needing to export it?

I created a simple test module that adds a text banner to all nodes if a checkbox is checked in the form of the modules configuration. Currently it is working halfway as I want. When the checkbox is ...
0
votes
0answers
40 views

Rollbacking from Yaml based configuration to database based configuration

We recently changed the way we deploy our Drupal site on our testing environment to a docker image. The issue is that we were using a file based configuration. The current applied configuration is not ...
0
votes
0answers
14 views

Domain Access not found page error (with Drupal 8.9.1 and Acquia Dev Desktop)

I created a fresh Drupal site and I downloaded and installed the Domain Access module. I created a first subdomain which has the same hostname as the default Drupal host. In my case: multisitedomain....
1
vote
1answer
59 views

How to check config setting in custom service class with dependency injection?

In a custom Service class, I need to check a config setting. I'm able to do this using \Drupal::config(static::SETTINGS) as documented here: https://www.drupal.org/docs/drupal-apis/configuration-api/...
0
votes
0answers
18 views

Synchronizing Translations with the Configuration Manager module

We are using the Configuration Manager to export and import configurations, and I was expecting our translations to be exported with this but noticed that they didn't. When I ran my export, I noticed ...
0
votes
1answer
29 views

Configure/Override EU Cookie Compliance

I've installed eu_cookie_complience module (eu_cookie_compliance 8.x-1.9). The documentation is nearly non-existent, but as much as this module is used, I'm hoping to find someone that has solved ...
3
votes
1answer
103 views

Config import for certain items appears to fail. How do I fix this?

After synchronizing configuration from dev to staging, I would expect all changes to be imported and for a message to display, advising "There are no configuration changes to import" Most ...
0
votes
0answers
62 views

How can I ensure migration YAML files execute in specified dependency order?

My Drupal migration yaml files are not being imported in the correct execution order. I have 8 migration files, most that depend on another file being executed first. I'm using a Google Spreadsheet as ...
0
votes
1answer
38 views

Why will drupal not recognize my configuration?

I am trying to import configuration from one site to another. I have copied the directory full of config files from an older site to my new site. When I try to run Drush cim, the files all show up ...
0
votes
1answer
32 views

Access denied when trying to import single configuration item

I am using Drupal 8.9.2 and trying to import a view using the Configuration Management UI in the admin. I did this with no issue importing the view from my local dev environment to our dev server, but ...
0
votes
1answer
24 views

User Role creation in module overridden by configuration import

I'm creating a user Role in a .yml file like user.role.myrole.yml. This works fine when this module is installed manually and the Role is created. When I enable this module via configuration import ...
0
votes
1answer
21 views

Changing the Title of a Blog

How can I change the title of my blog? It's found on the main page of the blog above the previews of the posts. I am attaching a screen shot. I want to change "The Scrapbooked Bible Study" (...
0
votes
2answers
69 views

Is there a cli equivalent of the web ui with underspecification?

background I run drush cget markdown.settings and see: dependencies: module: - markdown parser: id: michelf/php-markdown-extra render_strategy: type: none settings: ...
0
votes
0answers
115 views

Error: Call to a member function setRecipients() on null in standard_form_install_configure_submit()

After Install site, when I need to Configure Site, I got this error: Error The website encountered an unexpected error. Please try again later. Error: Call to a member function setRecipients() on null ...
-1
votes
1answer
42 views

How to change the name of site only for the developers?

I am new on Drupal 8 , in order to change the site name and the slogan , I want to change the site name just for the developers used my website is there any way to do that? I have implemented a code ...
0
votes
1answer
37 views

Custom module with config exposed in json api

I have a module with two pieces of config set using an admin form and Drupal the drupal config service. Like this /** * {@inheritdoc} */ public function submitForm(array &$form, ...
0
votes
1answer
61 views

how to configure drupal settings to be available to visualize the available variables?

how must drupal local settings be configured to display available variables using IDEs or other tools ? I guess this is xdebug and phpstorm but i don't know how to configure it if i don't have full ...
-1
votes
1answer
29 views

Trusted host patterns not working [duplicate]

I have an issue where I'm trying to make it a "Trusted host patterns" on settings.php. It gets an issue of "The provided host name is not valid for this server." I have tried many ...
0
votes
1answer
43 views

How to exclude a module from being uninstalled during import?

On my local I have installed my custom module which depends on a contrib module. I have removed both modules from the core.extensions.yml and added the following to settings.local.php. $settings['...
2
votes
1answer
40 views

How to configure trusted patterns for localhost:8082/d8multisite.com?

I have my drupal site running on localhost:8012. My url looks something like this : localhost:8012/d8multisite.com/ . I tried the following for enabling trusted_host_patterns. $settings['...
1
vote
4answers
191 views

How to export the config files of a content type to a module?

I have a custom module. I created a content type and added some fields to that content type. I also enabled the layout builder on the manage display of the content type Then I run drush -y cex to ...
1
vote
1answer
24 views

How can I use config-set to “unset” the value of a variable?

I am trying to use config-set to "unset" a variable. In this case, I have a media image field that has required crop types on it, which is breaking my behat tests, so I want to use drush to ...
3
votes
0answers
57 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
20 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
29 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('...
0
votes
0answers
34 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
41 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 ...
1
vote
0answers
28 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
12 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
57 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
52 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
48 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
96 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
44 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
2answers
368 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
29 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 ...

1
2 3 4 5
15