Last active
May 5, 2018 20:57
-
-
Save init90/147eea693b633efeb0bc6f3057312983 to your computer and use it in GitHub Desktop.
Drupal 8. Save logo settings to config for every domain.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $config = \Drupal::service('config.factory')->getEditable("domain.config.{$domain_machine_name}.omni_magazine.settings"); | |
| $config->set('logo', array('use_default' => FALSE, 'path' => drupal_realpath($file->getFileUri()))); | |
| $config->save(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment