Skip to content

Commit 0f6f98b

Browse files
authored
Merge pull request #12 from wieni/feature/drupal-10
d10
2 parents fb9eb26 + 16cba37 commit 0f6f98b

9 files changed

+20
-11
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": ">=7.1.0",
14-
"drupal/core": "^8.0 || ^9.0"
14+
"drupal/core": "^9.1 || ^10"
1515
},
1616
"require-dev": {
1717
"ergebnis/composer-normalize": "^2.0",

src/Event/EntityOverviewAlterEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Drupal\wmentity_overview\Event;
44

5+
use Drupal\Component\EventDispatcher\Event;
56
use Drupal\wmentity_overview\Annotation\OverviewBuilder;
67
use Drupal\wmentity_overview\OverviewBuilder\OverviewBuilderInterface;
7-
use Symfony\Component\EventDispatcher\Event;
88

99
class EntityOverviewAlterEvent extends Event
1010
{

src/Event/EntityOverviewAlternativesAlterEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Drupal\wmentity_overview\Event;
44

5+
use Drupal\Component\EventDispatcher\Event;
56
use Drupal\wmentity_overview\Annotation\OverviewBuilder;
6-
use Symfony\Component\EventDispatcher\Event;
77

88
class EntityOverviewAlternativesAlterEvent extends Event
99
{

src/EventSubscriber/BulkActionOverviewSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(
2020
$this->formBuilder = $formBuilder;
2121
}
2222

23-
public static function getSubscribedEvents()
23+
public static function getSubscribedEvents(): array
2424
{
2525
$events[WmEntityOverviewEvents::ENTITY_OVERVIEW_ALTER] = ['onOverviewAlter'];
2626

src/EventSubscriber/CollectionRouteSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct(
2121
$this->overviewBuilders = $overviewBuilders;
2222
}
2323

24-
public static function getSubscribedEvents()
24+
public static function getSubscribedEvents(): array
2525
{
2626
// Run before Drupal\Core\EventSubscriber/ParamConverterSubscriber
2727
$events[RoutingEvents::ALTER] = ['onAlterRoutes', -180];

src/EventSubscriber/FilterableOverviewSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct(
2121
$this->formBuilder = $formBuilder;
2222
}
2323

24-
public static function getSubscribedEvents()
24+
public static function getSubscribedEvents(): array
2525
{
2626
$events[WmEntityOverviewEvents::ENTITY_OVERVIEW_ALTER] = ['onOverviewAlter'];
2727

wmentity_overview.info.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Entity Overview
22
type: module
33
description: Improved EntityListBuilders with support for paging, table sorting, table dragging, filtering, bulk actions, database queries and more.
4-
core: 8.x
5-
core_version_requirement: ^8 || ^9
4+
core_version_requirement: ^9.1 || ^10
65
package: Wieni

wmentity_overview.libraries.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ bulk-action-form:
1010
base:
1111
css/bulk-action-form.css: {}
1212

13+
popperjs:
14+
remote: https://github.com/floating-ui/floating-ui
15+
version: '2.11.7'
16+
license:
17+
name: MIT
18+
url: https://github.com/floating-ui/floating-ui/blob/v2.x/LICENSE.md
19+
gpl-compatible: true
20+
js:
21+
https://unpkg.com/@popperjs/[email protected]/dist/umd/popper.min.js: { type: external , minified: true }
22+
1323
tooltip:
1424
version: VERSION
1525
css:
@@ -18,4 +28,4 @@ tooltip:
1828
js:
1929
js/tooltip.js: {}
2030
dependencies:
21-
- core/popperjs
31+
- wmentity_overview/popperjs

wmentity_overview.module

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function wmentity_overview_entity_overview_alter(array &$overview, OverviewBuild
1111
$dispatcher = \Drupal::getContainer()->get('event_dispatcher');
1212
$event = new EntityOverviewAlterEvent($builder, $overview);
1313

14-
$dispatcher->dispatch(WmEntityOverviewEvents::ENTITY_OVERVIEW_ALTER, $event);
14+
$dispatcher->dispatch($event, WmEntityOverviewEvents::ENTITY_OVERVIEW_ALTER);
1515
}
1616

1717

@@ -20,7 +20,7 @@ function wmentity_overview_entity_overview_alternatives_alter(array &$alternativ
2020
$dispatcher = \Drupal::getContainer()->get('event_dispatcher');
2121
$event = new EntityOverviewAlternativesAlterEvent($definition, $alternatives);
2222

23-
$dispatcher->dispatch(WmEntityOverviewEvents::ENTITY_OVERVIEW_ALTERNATIVES_ALTER, $event);
23+
$dispatcher->dispatch($event, WmEntityOverviewEvents::ENTITY_OVERVIEW_ALTERNATIVES_ALTER);
2424
}
2525

2626

0 commit comments

Comments
 (0)