Score:0

Why isn't this configuration saving?

us flag

How do I do change configuration when there is a dash in the yml file?

The configuration is the following one.

source:
  plugin: url
  data_fetcher_plugin: http
  data_parser_plugin: xml
  urls:
    - 'private://migrations/migration.xml'

I need to change it to the following.

source:
  plugin: url
  data_fetcher_plugin: http
  data_parser_plugin: xml
  urls:
    - 'private://migrations/2023-05-01/migration.xml'

I tried the following code, but it does not work.

$this->configFactory()
  ->getEditable('migrate_plus.migration.my_migration')
  ->set('source.urls', $file_values->uri);
$this->configFactory()
  ->getEditable('migrate_plus.migration.my_migration')
  ->set('source.urls', [$file_values->uri]);
id flag
What is the outcome of the things you tried? You haven't mentioned what isn't working here.
id flag
Did you call `save` after `set`?
us flag
Of course `->save();`. Smh. Thank you.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.