public static function StructureSyncHelper::importCustomBlocksSafe in Structure Sync 8
Same name and namespace in other branches
- 2.x src/StructureSyncHelper.php \Drupal\structure_sync\StructureSyncHelper::importCustomBlocksSafe()
Function to start importing custom blocks with the 'safe' style.
File
- src/
StructureSyncHelper.php, line 139
Class
- StructureSyncHelper
- Container of functions for importing and exporting content in structure.
Namespace
Drupal\structure_syncCode
public static function importCustomBlocksSafe(array &$form, FormStateInterface $form_state = NULL) {
$form['style'] = 'safe';
StructureSyncHelper::importCustomBlocks($form, $form_state);
}