Skip to content

Commit

Permalink
chore: make custom code d10 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Leksat committed Nov 5, 2023
1 parent 851dc73 commit 8cae247
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function buildResolver(ResolverBuilder $builder, array $arguments): Resol
if (!empty($args['query'])) {
$countQuery->condition('title', $args['query'], 'CONTAINS');
}
$count = $countQuery->count()->execute();
$count = $countQuery->count()->accessCheck(TRUE)->execute();

$query = \Drupal::entityQuery('node');
$query->condition('type', 'page');
Expand All @@ -40,6 +40,7 @@ public function buildResolver(ResolverBuilder $builder, array $arguments): Resol
}
$pageIds = $query->range($offset, $limit)
->sort('title', 'ASC')
->accessCheck(TRUE)
->execute();
$posts = $pageIds ? Node::loadMultiple($pageIds) : [];
return [
Expand Down
3 changes: 1 addition & 2 deletions packages/drupal/gutenberg_blocks/gutenberg_blocks.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Gutenberg Blocks
type: module
description: 'Add custom blocks to the Gutenberg editor.'
package: Custom
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^9 || ^10
dependencies:
- gutenberg:gutenberg
- silverback_gutenberg:silverback_gutenberg

0 comments on commit 8cae247

Please sign in to comment.