Commit cf5d1499 authored by Lucas Hedding's avatar Lucas Hedding Committed by Sascha Grossenbacher
Browse files

Issue #3267595 by heddn: Support Drupal 10

parent 9753df3f
Loading
Loading
Loading
Loading
+1 −1
Changes for composer.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -9,6 +9,6 @@
    "source": "https://git.drupalcode.org/project/entity"
  },
  "require": {
    "drupal/core": "^8.8.2 || ^9"
    "drupal/core": "^9.2|^10.0"
  }
}
+1 −1
Changes for entity.info.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
name: Entity
description: Provides expanded entity APIs, which will be moved to Drupal core one day.
type: module
core_version_requirement: ^8.8.2 || ^9
core_version_requirement: "^9.2|^10"
+1 −0
Changes for src/Access/EntityRevisionRouteAccessChecker.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -158,6 +158,7 @@ class EntityRevisionRouteAccessChecker implements AccessInterface {
      ->condition($entity_type->getKey('id'), $entity->id())
      ->condition($entity_type->getKey('default_langcode'), 1)
      ->count()
      ->accessCheck(TRUE)
      ->execute();
    return $count;
  }
+1 −0
Changes for src/BundleEntityDuplicator.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -119,6 +119,7 @@ class BundleEntityDuplicator implements BundleEntityDuplicatorInterface {
    $storage = $this->entityTypeManager->getStorage($entity_type_id);
    $ids = $storage->getQuery()
      ->condition('id', $id_prefix, 'STARTS_WITH')
      ->accessCheck(TRUE)
      ->execute();

    return $ids ? $storage->loadMultiple($ids) : [];
+1 −0
Changes for src/BundlePlugin/BundlePluginUninstallValidator.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ class BundlePluginUninstallValidator implements ModuleUninstallValidatorInterfac
          $result = $this->entityTypeManager->getStorage($entity_type->id())->getQuery()
            ->condition($entity_type->getKey('bundle'), $bundle)
            ->range(0, 1)
            ->accessCheck(TRUE)
            ->execute();
          return !empty($result);
        });
Loading