public static function StructureSyncHelper::importCustomBlocks in Structure Sync 8
Same name and namespace in other branches
- 2.x src/StructureSyncHelper.php \Drupal\structure_sync\StructureSyncHelper::importCustomBlocks()
Function to import custom blocks.
When this function is used without the designated form, you should assign an array with a key value pair for form with key 'style' and value 'full', 'safe' or 'force' to apply that import style.
5 calls to StructureSyncHelper::importCustomBlocks()
- drush_structure_sync_import_blocks in ./
structure_sync.drush.inc - Call back function drush_structure_sync_import_blocks()
- StructureSyncCommands::importBlocks in src/
Commands/ StructureSyncCommands.php - Import blocks
- StructureSyncHelper::importCustomBlocksForce in src/
StructureSyncHelper.php - Function to start importing custom blocks with the 'force' style.
- StructureSyncHelper::importCustomBlocksFull in src/
StructureSyncHelper.php - Function to start importing custom blocks with the 'full' style.
- StructureSyncHelper::importCustomBlocksSafe in src/
StructureSyncHelper.php - Function to start importing custom blocks with the 'safe' style.
File
- src/
StructureSyncHelper.php, line 58
Class
- StructureSyncHelper
- Container of functions for importing and exporting content in structure.
Namespace
Drupal\structure_syncCode
public static function importCustomBlocks(array $form, FormStateInterface $form_state = NULL) {
$customBlocksController = new BlocksController();
$customBlocksController
->importBlocks($form, $form_state);
}