Loading menu_link_attributes.install +4 −1 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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(); Loading Loading
menu_link_attributes.install +4 −1 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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(); Loading