Issue #3056543 by plach, jungle, Berdir, catch, xjm, amateescu:...
Issue #3056543 by plach, jungle, Berdir, catch, xjm, amateescu: taxonomy_post_update_make_taxonomy_term_revisionable() and the menu link content equivalent fail when entities have no default translation
returnnewPluralTranslatableMarkup($count,'Custom menu links have been converted to be revisionable. One menu link with data integrity issues was restored. More details have been <a href=":url">logged</a>.','Custom menu links have been converted to be revisionable. @count menu links with data integrity issues were restored. More details have been <a href=":url">logged</a>.',$args);
}
else{
returnnewPluralTranslatableMarkup($count,'Custom menu links have been converted to be revisionable. One menu link with data integrity issues was restored. More details have been logged.','Custom menu links have been converted to be revisionable. @count menu links with data integrity issues were restored. More details have been logged.');
}
}
else{
returnt('Custom menu links have been converted to be revisionable.');
}
}
/**
* Fixes recoverable data integrity issues in the "default_langcode" field.
*
* @param array $sandbox
* The update sandbox array.
*
* @return bool
* TRUE if the operation was finished, FALSE otherwise.
// Check that the update function returned the expected message.
$this->assertSession()->pageTextContains('Custom menu links have been converted to be revisionable. 2 menu links with data integrity issues were restored. More details have been logged.');
returnnewPluralTranslatableMarkup($count,'Taxonomy terms have been converted to be revisionable. One term with data integrity issues was restored. More details have been <a href=":url">logged</a>.','Taxonomy terms have been converted to be revisionable. @count terms with data integrity issues were restored. More details have been <a href=":url">logged</a>.',$args);
}
else{
returnnewPluralTranslatableMarkup($count,'Taxonomy terms have been converted to be revisionable. One term with data integrity issues was restored. More details have been logged.','Taxonomy terms have been converted to be revisionable. @count terms with data integrity issues were restored. More details have been logged.');
}
}
else{
returnt('Taxonomy terms have been converted to be revisionable.');
}
}
/**
* Fixes recoverable data integrity issues in the "default_langcode" field.
*
* @param array $sandbox
* The update sandbox array.
*
* @return bool
* TRUE if the operation was finished, FALSE otherwise.