From d98e98c8dfca7d19acb4894bcaf0779acde11ad9 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Thu, 14 Sep 2023 12:55:31 -0300 Subject: [PATCH] Base update, adding D10 and `::accessCheck()` and dropping D8. Still a referencing `core/jquery.once`, needing to be ported over to use `core/once`. --- README.md | 4 ++-- dgi_members.info.yml | 2 +- src/DgiMembersEntityOperations.php | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bbbb540..6e9b8f9 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This module requires the following modules/libraries: ## Installation Install as usual, see -[this](https://drupal.org/documentation/install/modules-themes/modules-8) for +[this](https://www.drupal.org/docs/extending-drupal/installing-modules) for further information. ## Usage @@ -34,7 +34,7 @@ view of 'Content: Collection(s)'. * Change the 'Pager' settings to only show a specific number of items, 1. This module will allow switching view modes for the current member of the compound object, -not just the compound object itself (provided by the menu router). +not just the compound object itself (provided by the menu router). ## Troubleshooting/Issues diff --git a/dgi_members.info.yml b/dgi_members.info.yml index 631b59f..adac1f8 100644 --- a/dgi_members.info.yml +++ b/dgi_members.info.yml @@ -1,7 +1,7 @@ name: 'DGI Members' type: module description: 'Facilitates display of compounds objects' -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 package: 'DGI' dependencies: - islandora:islandora diff --git a/src/DgiMembersEntityOperations.php b/src/DgiMembersEntityOperations.php index 39b7a9f..adca292 100644 --- a/src/DgiMembersEntityOperations.php +++ b/src/DgiMembersEntityOperations.php @@ -10,8 +10,6 @@ use Drupal\taxonomy\TermInterface; /** - * Class DgiMembersEntityOperations. - * * Utility service to perform compound object related operations. */ class DgiMembersEntityOperations { @@ -169,6 +167,7 @@ public function membersQueryExecute() { $to_return = $this->entityTypeManager ->getStorage('node') ->getQuery() + ->accessCheck() ->condition('field_member_of', $entity->id()) ->sort('field_weight') ->execute();