Skip to content
Snippets Groups Projects
Commit 5d3ebe09 authored by Zan Vidmar's avatar Zan Vidmar Committed by zanvidmar
Browse files

Issue #3452643: Change uri_scheme of field_media_file to secret

Change uri_scheme of field_media_file from private to secret.
parent eb871ba5
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ settings:
target_type: file
display_field: false
display_default: false
uri_scheme: private
uri_scheme: secret
module: file
locked: false
cardinality: 1
......
field.storage.media.field_media_file:
expected_config:
settings:
uri_scheme: private
update_actions:
change:
settings:
uri_scheme: secret
......@@ -34,3 +34,17 @@ function social_media_system_update_12102(): string {
// Output logged messages to related channel of update execution.
return $updater->logger()->output();
}
/**
* Change uri_scheme of field_media_file from private to secret.
*/
function social_media_system_update_12103(): string {
/** @var \Drupal\update_helper\Updater $updater */
$updater = \Drupal::service('update_helper.updater');
// Execute configuration update definitions with logging of success.
$updater->executeUpdate('social_media_system', 'social_media_system_update_12103');
// Output logged messages to related channel of update execution.
return $updater->logger()->output();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment