public static function DrupalConfigHelper::buildFormFromSchema in Backup and Migrate 8.4
Parameters
array $schema: A configuration schema from one or more Backup and Migrate plugins.
\BackupMigrate\Core\Config\ConfigInterface $config: The configuration object containing the default values.
array $parents: The form parents array.
Return value
array A drupal forms api array.
2 calls to DrupalConfigHelper::buildFormFromSchema()
- BackupRestoreForm::buildForm in src/
Form/ BackupRestoreForm.php - DrupalConfigHelper::buildPluginForm in src/
Config/ DrupalConfigHelper.php - Build the configuration form for a single plugin, source or destination.
File
- src/
Config/ DrupalConfigHelper.php, line 70
Class
- DrupalConfigHelper
- Class DrupalConfigHelper.
Namespace
BackupMigrate\Drupal\ConfigCode
public static function buildFormFromSchema($schema, ConfigInterface $config, $parents = [], $form = []) {
$form = [];
DrupalConfigHelper::addFieldsFromSchema($form, $schema, $config, $parents);
return $form;
}