WordPress at a glance
function is not described

Action_Scheduler\WP_CLI

Migration_Command::get_migration_config() private WC 1.0

Build the config object used to create the Runner

{} It's a method of the class: Migration_Command{}

No Hooks.

Return

ActionScheduler\Migration\Config.

Usage

// private - for code of main (parent) class only
$result = $this->get_migration_config( $args );
$args(array) (required)
Optional arguments.

Code of Migration_Command::get_migration_config() WC 5.0.0

<?php
private function get_migration_config( $args ) {
	$args = wp_parse_args( $args, [
		'dry-run' => false,
	] );

	$config = Controller::instance()->get_migration_config_object();
	$config->set_dry_run( ! empty( $args[ 'dry-run' ] ) );

	return $config;
}