Commit 11bfdfea authored by Marcin Grabias's avatar Marcin Grabias Committed by Marcin Grabias
Browse files

Issue #3304880 by Graber, zarabatana, smustgrave: Drupal 10 compatibility fixes

parent ba14415b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -17,7 +17,7 @@
  "license": "GPL-2.0-or-later",
  "license": "GPL-2.0-or-later",
  "minimum-stability": "dev",
  "minimum-stability": "dev",
  "require": {
  "require": {
    "drupal/core": "^9"
    "drupal/core": "^9 || ^10"
  },
  },
  "require-dev": {
  "require-dev": {
    "drush/drush": "^10"
    "drush/drush": "^10"
+1 −1
Original line number Original line Diff line number Diff line
@@ -2,6 +2,6 @@ type: module
name: 'Actions Permissions'
name: 'Actions Permissions'
description: 'Adds access permissions on all actions allowing admins to restrict access on a per-role basis.'
description: 'Adds access permissions on all actions allowing admins to restrict access on a per-role basis.'
package: 'Views Bulk Operations'
package: 'Views Bulk Operations'
core_version_requirement: ^8 || ^9
core_version_requirement: ^9 || ^10
dependencies:
dependencies:
  - drupal:views_bulk_operations
  - drupal:views_bulk_operations
+1 −1
Original line number Original line Diff line number Diff line
@@ -2,6 +2,6 @@ type: module
name: 'Views Bulk Operations example'
name: 'Views Bulk Operations example'
description: 'Defines an example action with all possible options.'
description: 'Defines an example action with all possible options.'
package: 'Examples'
package: 'Examples'
core_version_requirement: ^8 || ^9
core_version_requirement: ^9 || ^10
dependencies:
dependencies:
  - drupal:views_bulk_operations
  - drupal:views_bulk_operations
+1 −1
Original line number Original line Diff line number Diff line
@@ -2,6 +2,6 @@ type: module
name: 'Views Bulk Operations'
name: 'Views Bulk Operations'
description: 'Adds an ability to perform bulk operations on selected entities from view results.'
description: 'Adds an ability to perform bulk operations on selected entities from view results.'
package: 'Views'
package: 'Views'
core_version_requirement: ^9
core_version_requirement: ^9 || ^10
dependencies:
dependencies:
  - drupal:views
  - drupal:views
+2 −2
Original line number Original line Diff line number Diff line
@@ -14,12 +14,12 @@ function views_bulk_operations_update_8034(&$sandbox): ?TranslatableMarkup {
  $viewsStorage = \Drupal::service('entity_type.manager')->getStorage('view');
  $viewsStorage = \Drupal::service('entity_type.manager')->getStorage('view');


  if (!isset($sandbox['current'])) {
  if (!isset($sandbox['current'])) {
    $sandbox['total'] = $viewsStorage->getQuery()->count()->execute();
    $sandbox['total'] = $viewsStorage->getQuery()->accessCheck(FALSE)->count()->execute();
    $sandbox['current'] = 0;
    $sandbox['current'] = 0;
    $sandbox['converted'] = 0;
    $sandbox['converted'] = 0;
  }
  }


  $query = $viewsStorage->getQuery();
  $query = $viewsStorage->getQuery()->accessCheck(FALSE);


  // Process 10 view configs at a time.
  // Process 10 view configs at a time.
  $query->range($sandbox['current'], 10);
  $query->range($sandbox['current'], 10);