Add ability to import without using the batch API

Created on 26 August 2020, over 4 years ago
Updated 4 May 2023, over 1 year ago

Problem/Motivation

It would be nice to do an import procedurally in code without having to use the batch API/drush.

StructureSyncHelper::importCustomBlocks([
    'style' => 'safe',
    'drush' => TRUE, // This will import procedurally, but now work even if not within a drush context.
  ]);

This is mostly useful for using Structure sync in profile installation steps.

📌 Task
Status

Closed: outdated

Version

2.0

Component

Code

Created by

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