Skip to content

Commit

Permalink
Remove deprecated option --preview in config:export (#4982)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Jan 6, 2022
1 parent b497267 commit 5a666e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Drupal/Commands/config/ConfigImportCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ public function __construct(
*
* @return bool|void
* @option diff Show preview as a diff.
* @option preview Deprecated. Format for displaying proposed changes. Recognized values: list, diff.
* @option source An arbitrary directory that holds the configuration files. An alternative to label argument
* @option partial Allows for partial config imports from the source directory. Only updates and new configs will be processed with this flag (missing configs will not be deleted). No config transformation happens.
* @aliases cim,config-import
Expand All @@ -209,7 +208,7 @@ public function __construct(
* @throws StorageTransformerException
* @throws UserAbortException
*/
public function import(array $options = ['preview' => 'list', 'source' => self::REQ, 'partial' => false, 'diff' => false])
public function import(array $options = ['source' => self::REQ, 'partial' => false, 'diff' => false])
{
// Determine source directory.
$source_storage_dir = ConfigCommands::getDirectory($options['source']);
Expand Down Expand Up @@ -247,7 +246,7 @@ public function import(array $options = ['preview' => 'list', 'source' => self::
return;
}

if ($options['preview'] == 'list' && !$options['diff']) {
if (!$options['diff']) {
$change_list = [];
foreach ($storage_comparer->getAllCollectionNames() as $collection) {
$change_list[$collection] = $storage_comparer->getChangelist(null, $collection);
Expand Down

0 comments on commit 5a666e7

Please sign in to comment.