Update Hook Event Dispatcher module
- Update the Hook Event Dispatcher module from `8.x-1.29` to `8.x-2.02`. - Update custom modules after breaking changes from upgrading. References #112
This commit is contained in:
parent
61442ed74c
commit
0f01551f26
8 changed files with 45 additions and 25 deletions
|
@ -5,7 +5,7 @@ declare(strict_types=1);
|
|||
namespace Drupal\opdavies_talks\EventSubscriber;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Drupal\hook_event_dispatcher\Event\Entity\BaseEntityEvent;
|
||||
use Drupal\core_event_dispatcher\Event\Entity\AbstractEntityEvent;
|
||||
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
|
||||
use Drupal\opdavies_talks\Entity\Node\Talk;
|
||||
use Drupal\paragraphs\ParagraphInterface;
|
||||
|
@ -22,7 +22,7 @@ final class UpdateTalkNodeBeforeSave implements EventSubscriberInterface {
|
|||
];
|
||||
}
|
||||
|
||||
public function onEntityPreSave(BaseEntityEvent $event): void {
|
||||
public function onEntityPreSave(AbstractEntityEvent $event): void {
|
||||
if ($event->getEntity()->getEntityTypeId() != 'node') {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@ abstract class TalksTestBase extends EntityKernelTestBase {
|
|||
'entity_reference_revisions',
|
||||
'paragraphs',
|
||||
'hook_event_dispatcher',
|
||||
'core_event_dispatcher',
|
||||
|
||||
// Custom.
|
||||
'opdavies_talks',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue