Commit e086fdb9 authored by Tim van der Linde's avatar Tim van der Linde Committed by Joao Ventura
Browse files

Issue #3308692 by Valdispert, S_Bhandari, Manoj Raj.R, jcnventura: Drupal 10 compatibility issues

parent e36acdbc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -12,7 +12,9 @@ use Drupal\menu_link_content\Entity\MenuLinkContent;
 */
function menu_link_attributes_update_8001(&$sandbox) {
  if (!isset($sandbox['total'])) {
    $menu_link_content_ids = \Drupal::entityQuery('menu_link_content')->execute();
    $menu_link_content_ids = \Drupal::entityQuery('menu_link_content')
      ->accessCheck(FALSE)
      ->execute();
    $sandbox['total'] = count($menu_link_content_ids);
    $sandbox['current'] = 0;
    $sandbox['updated'] = 0;
@@ -25,6 +27,7 @@ function menu_link_attributes_update_8001(&$sandbox) {

  $items_per_batch = 25;
  $menu_link_content_ids = \Drupal::entityQuery('menu_link_content')
    ->accessCheck(FALSE)
    ->range($sandbox['current'], $items_per_batch)
    ->execute();