How do I invoke the import in an updb hook?

Created on 3 March 2019, almost 6 years ago
Updated 22 January 2024, 12 months ago

I want to invoke the import in an update hook. ideally , I want to store the generated taxonomy in a file and in my hook update pass the content to structure sync import function. Something like this:

function my_module_update() {
  $tax_list = get_the_list("path/to/my/file.yml");
  TaxonomiesController::importTaxonomies($tax_list, "full");
}

πŸ’¬ Support request
Status

Closed: duplicate

Version

1.16

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States awm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024