Skip to content
Snippets Groups Projects
Commit d526443b authored by Richard Brandon's avatar Richard Brandon Committed by Richard Brandon
Browse files

Issue #3406777 by rbrandon: Drupal 10 Compatibility

parent 04aa9f49
No related branches found
No related tags found
No related merge requests found
name: group_purl
type: module
description: Purl provider for Group
core_version_requirement: ^8 || ^9
core_version_requirement: ^9 || ^10
package: Group
dependencies:
- drupal:group
......
......@@ -15,7 +15,7 @@ use Symfony\Component\EventDispatcher\Event;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Routing\CurrentRouteMatch;
use Drupal\purl\MatchedModifiers;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\HttpKernel\KernelEvents;
use Drupal\Core\Routing\NullRouteMatch;
......@@ -65,11 +65,11 @@ class GroupContextRouteSubscriber implements EventSubscriberInterface {
* This method is called whenever the KernelEvents::REQUEST event is
* dispatched.
*
* @param GetResponseEvent $event
* @param RequestEvent $event
* @param $eventName
* @param EventDispatcherInterface $eventDispatcher
*/
public function checkGroupContext(GetResponseEvent $event, $eventName, EventDispatcherInterface $eventDispatcher) {
public function checkGroupContext(RequestEvent $event, $eventName, EventDispatcherInterface $eventDispatcher) {
$master_route_match = $this->currentRouteMatch->getMasterRouteMatch();
if (!$master_route_match instanceof NullRouteMatch) {
$route_options = $master_route_match->getRouteObject()->getOptions();
......
......@@ -15,7 +15,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* @Condition(
* id = "group_purl_condition",
* label = @Translation("Group purl condition"),
* context = {
* context_definitions = {
* "group" = @ContextDefinition("entity:group", default = 0, label = @Translation("group"))
* }
* )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment