Skip to content

Commit

Permalink
Drupal 10 compatibility (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: Hans Langouche <wonk@wieni.be>
Co-authored-by: Robin Houtevelts <robin@wieni.be>
  • Loading branch information
3 people authored Dec 18, 2023
1 parent d16c1c6 commit 06f8b61
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.0.1] - 2023-12-18
Please migrate to [drupal/node_singles](https://www.drupal.org/project/node_singles).
Check [`UPGRADING.md`](UPGRADING.md) for instructions.

- Add Drupal 10 compatibility

## [3.0.0] - 2022-01-20
Check [`UPGRADING.md`](UPGRADING.md) for instructions.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"php": "^7.1 || ^8.0",
"drupal/core": "^8.8 || ^9.0"
"drupal/core": "^8.8 || ^9.0 || ^10.0"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.0",
Expand Down
1 change: 1 addition & 0 deletions src/Service/WmSingles.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function checkSingle(NodeTypeInterface $type): void
$storage = $this->entityTypeManager->getStorage('node');
$nodes = $storage->getQuery()
->condition('type', $type->id())
->accessCheck(false)
->execute();

// There are multiple nodes, this shouldn't happen
Expand Down
2 changes: 1 addition & 1 deletion wmsingles.info.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Wieni Singles
type: module
description: Singles are node types used for one-off pages that have unique content requirements
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^8.8 || ^9 || ^10
package: Wieni
dependencies:
- node

0 comments on commit 06f8b61

Please sign in to comment.