Skip to content

Commit

Permalink
NBNP-448 Create verbosity label for page back-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobSanford committed Jun 25, 2024
1 parent 095c2f0 commit 541b063
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,15 @@ public static function getPagesNeedingToMove($limit = 50) {
*
* @param int $limit
* The number of pages to move. Defaults to 50.
* @param bool $verbose
* Whether to output verbose information. Defaults to FALSE.
*/
public static function movePagesNeedingToMove($limit = 50) {
public static function movePagesNeedingToMove($limit = 50, $verbose = FALSE) {
$pages = self::getPagesNeedingToMove($limit);
foreach ($pages as $page) {
if ($verbose) {
echo "Moving page {$page->id()}...\n";
}
self::movePageAssets($page);
}
}
Expand Down

0 comments on commit 541b063

Please sign in to comment.