Skip to content

Commit

Permalink
Changes in install file only for callbackurl field
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarkhaire committed Aug 28, 2023
1 parent 010cc9d commit a96444e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apigee_edge.install
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,6 @@ function apigee_edge_update_9002() {
$source = new FileStorage("$module_path/config/install");
$new_edge_settings = $source->read('core.entity_view_display.developer_app.developer_app.default');
$edge_settings = $config_storage->read('core.entity_view_display.developer_app.developer_app.default');
$edge_settings['content'] = $new_edge_settings['content'];
$edge_settings['content']['callbackUrl'] = $new_edge_settings['content']['callbackUrl'];
$config_storage->write('core.entity_view_display.developer_app.developer_app.default', $edge_settings);
}
3 changes: 2 additions & 1 deletion modules/apigee_edge_teams/apigee_edge_teams.install
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Apigee\Edge\Utility\OrganizationFeatures;
use Drupal\Core\Config\FileStorage;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Config\FileStorage;
use Drupal\user\RoleInterface;
use Drupal\views\Views;

Expand Down Expand Up @@ -212,7 +213,7 @@ function apigee_edge_teams_update_9002() {
$source = new FileStorage("$module_path/config/install");
$new_team_settings = $source->read('core.entity_view_display.team_app.team_app.default');
$team_settings = $config_storage->read('core.entity_view_display.team_app.team_app.default');
$team_settings['content'] = $new_team_settings['content'];
$team_settings['content']['callbackUrl'] = $new_team_settings['content']['callbackUrl'];
$config_storage->write('core.entity_view_display.team_app.team_app.default', $team_settings);
}

Expand Down

0 comments on commit a96444e

Please sign in to comment.