Skip to content
Snippets Groups Projects
Commit 402c03d1 authored by Nikolay Lobachev's avatar Nikolay Lobachev
Browse files

Issue #3438386 by LOBsTerr: Automated Drupal 11 compatibility fixes for ginvite

parent f4ddb1cb
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
"minimum-stability": "dev", "minimum-stability": "dev",
"require": { "require": {
"drupal/group" : "^3.0", "drupal/group" : "^3.0",
"drupal/core": "^9 || ^10" "drupal/core": "^9 || ^10 || ^11"
} }
} }
name: 'Group invite' name: 'Group invite'
description: 'Allows group managers to invite people into their group' description: 'Allows group managers to invite people into their group'
type: module type: module
core_version_requirement: ^9 || ^10 core_version_requirement: ^9 || ^10 || ^11
package: Group package: Group
dependencies: dependencies:
- group:group - group:group
......
...@@ -106,7 +106,7 @@ class GinviteSubscriber implements EventSubscriberInterface { ...@@ -106,7 +106,7 @@ class GinviteSubscriber implements EventSubscriberInterface {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public static function getSubscribedEvents() { public static function getSubscribedEvents(): array {
$events = []; $events = [];
$events[KernelEvents::REQUEST][] = ['notifyAboutPendingInvitations']; $events[KernelEvents::REQUEST][] = ['notifyAboutPendingInvitations'];
$events[UserRegisteredFromInvitationEvent::EVENT_NAME][] = ['unblockInvitedUsers']; $events[UserRegisteredFromInvitationEvent::EVENT_NAME][] = ['unblockInvitedUsers'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment