Skip to content
Snippets Groups Projects

Issue #3166331: Integration with the Configuration Update module

Open Issue #3166331: Integration with the Configuration Update module
2 unresolved threads
2 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
52 foreach ($rewrite_folders[$name] as $rewrite_folder) {
53 $filepath = $rewrite_folder . '/' . $name . '.' . static::getFileExtension();
54 $file_data = file_get_contents($filepath);
55
56 try {
57 $rewrite_data = $this->decode($file_data);
58 }
59 catch (InvalidDataTypeException $e) {
60 throw new UnsupportedDataTypeConfigException('Invalid data type in config ' . $name . ', found in file' . $filepath . ' : ' . $e->getMessage());
61 }
62
63 $data = $this->configRewriter->rewriteConfig($data, $rewrite_data, $name, 'config_rewrite_update');
64
65 // Unset 'config_rewrite' internal key.
66 if (isset($data['config_rewrite'])) {
67 unset($data['config_rewrite']);
  • 19 19 "require": {
    20 20 "drupal/core": "^8.6 || ^9",
    21 21 "php": ">=7.1"
    22 },
    23 "suggest": {
    24 "drupal/config_update": "Provides basic revert and update functionality for other modules."
    Please register or sign in to reply
    Loading