Skip to content
Snippets Groups Projects

Issue #3368158: TypeError: taxonomy_machine_name_update_all_terms(): Argument #1 ($context) must be of type array, DrushBatchContext given

Merged Issue #3368158: TypeError: taxonomy_machine_name_update_all_terms(): Argument #1 ($context) must be of type array, DrushBatchContext given
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -43,10 +43,10 @@ function taxonomy_machine_name_update_8001(array &$sandbox = NULL) {
/**
* Update machine names for existing terms, usable both in batch and update.
*
* @param array $context
* @param array|DrushBatchContext $context
* The $context parameter in updates, called $context in Batch API.
*/
function taxonomy_machine_name_update_all_terms(array &$context) {
function taxonomy_machine_name_update_all_terms(&$context) {
$sandbox = &$context['sandbox'];
if (empty($sandbox['tids'])) {
// Size of the batch to process.
Loading