By editor, 20 November, 2015 Question How to Set configuration at the module installation To set configuration at the module installation Exemple: $site_name = \Drupal::config('system.site')->get('name'); // Set the site name. \Drupal::configFactory()->getEditable('system.site')->set('name', 'My site')->save(); Tags Drupal 8 Code Drupal Configuration System (Config API) Drupal 8 Module Settings and Mapping Comments You must have JavaScript enabled to use this form. Your name Subject Comment About text formats Plain text No HTML tags allowed. Lines and paragraphs break automatically. Web page addresses and email addresses turn into links automatically.
Comments