Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

Filter by
Sorted by
Tagged with
3
votes
1answer
367 views

When to create schema while working with config entity?

We have a custom form mymoduleForm.php that is used to perform some logic by calling mymodule_preprocess_node(). We were able to add addCacheableDependency() and now the mymodule_preprocess_node hook ...
2
votes
2answers
322 views

Multisite config directories of subsides

I set up a local Drupal 8 multisite, using Acquia dev desktop. It's working fine. I added all Drupal 8 core files to my local repository and pushed them to a central remote repository. in sites/...
2
votes
2answers
227 views

Changing configuration using form

I have created a form using which I want to make changes in the configuration.Currently I am submitting form doing something like this: public function submitForm(array &$form, ...
2
votes
1answer
540 views

Custom entries in entity view modes?

Background + question I want to port entdispfieldui to Drupal 8. (issue) The module allows a site builder to add new entries into an entity view mode, configure and position them among the regular ...
2
votes
1answer
113 views

Why does the Configuration Management module warn not to use in production?

In the Configurations Management module, right before you click the Import button, it warns: Importing configurations will write your configurations directly to the activestore. DO NOT USE THIS ON ...
2
votes
2answers
462 views

Can I safely use the same UUID on independent sites?

I'm trying to create a site building workflow which uses some sort of blueprint site, providing a shared, tested set of the Drupal core, modules, content types, paragraph types, a base theme, etc. for ...
1
vote
2answers
408 views

How can I access block metadata from custom plugin instance?

Using the block_example module, I created two instances of the example_configurable_text block in the UI and would like to now access their underlying metadata, specifically uuids. By looking at the ...
1
vote
1answer
425 views

Why doesn't variable_set() work in an installation profile?

I'm writing an installation profile, and I want to display some forms on some pages. The form below intended to set a variable at submission time. It does not work in the profile, but it works on an ...
1
vote
4answers
445 views

How to define settings from an install profile

I am looking for the way to set some settings at the install step. function genius_profile_final() { // Enable default permissions for system roles. $filtered_html_permission = ...
1
vote
1answer
172 views

How do I create a variable to check last time hook_cron() implemented from a custom module was ran?

We have a custom module for which we need to run on a daily basis. I am not sure it is working, as I am unable to store the time correctly. Does the following code allow me to create a variable, ...
1
vote
2answers
307 views

How do I set a variable in the install profile to enable users to sign up for the website

I am trying to understand about how setting variables works in install profiles. As an example, how would I set the option to enable people to create a website for the account in the install profile? ...
0
votes
1answer
2k views

Does Drupal 7 support connecting to DB using MySQLi?

I have tried to connect to Mysql DB using Mysqli by declaring 'driver' => 'mysqli' inside DB array in settings.php but I get the following error: Warning: require_once(/srv/http/my-domain/includes/...
0
votes
1answer
585 views

All instances of block are not getting removed

This question is a continuation of this Block in Drupal 8, The second problem I am facing is that suppose I select block made for comment section and place it under Sidebar second section and ...
0
votes
1answer
252 views

How can I avoid saved configuration settings to be exported?

I have a custom module and I added a form that allows the administrator to save some settings. Now, when I export the configuration (drush cex), I notice that these settings are being exported to a ...
0
votes
1answer
75 views

Easy database reconfiguration for migration [duplicate]

I have build a Drupal site on my local development server and I am preparing to move it to my test server and eventually my live server. I know where to find the database settings in my settings.php ...
0
votes
1answer
116 views

Blocks: Old vs. “Custom” and Config vs. Fields

I have quite a bit to ask in this question, so I apologize in advance. I believe these questions are all related, and I'm trying to grasp some thoughts on the new block system in Drupal 8. Background ...
0
votes
1answer
212 views

Copy installed modules and configuration to new installation

I have a Drupal 8 application with mysql as database. I installed bunch of third part modules such as domain, search_api, pdf etc... Most I installed using composer and a very few using "Install ...
0
votes
2answers
223 views

$base_url set to an external domain causes problems when logging in

I am developing a conference site with Drupal 7. The site is hosted at domain1.com. The conference is covered by another organization, and they require the conference page to be accessible from their ...
0
votes
1answer
479 views

Block in Drupal 8

I have coded a plugin in my module which extends block base and generates labels for block in /admin/structure/block page under Place block. These block are being generated for different entities. The ...
-1
votes
1answer
34 views

Organizing config for use with a module

I've recently learned about adding a config/optional directory to a module to provide config items that will be imported upon enabling the module if there are no conflicts. Is there an easier way to ...