Skip to content

Commit

Permalink
Base update, adding D10 and ::accessCheck() and dropping D8.
Browse files Browse the repository at this point in the history
Still a referencing `core/jquery.once`, needing to be ported over to use
`core/once`.
  • Loading branch information
adam-vessey committed Sep 14, 2023
1 parent 2974a2a commit d98e98c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion dgi_members.info.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions src/DgiMembersEntityOperations.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
use Drupal\taxonomy\TermInterface;

/**
* Class DgiMembersEntityOperations.
*
* Utility service to perform compound object related operations.
*/
class DgiMembersEntityOperations {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit d98e98c

Please sign in to comment.