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
|
@ -6,7 +6,7 @@ namespace Drupal\opdavies_blog\EventSubscriber;
|
|||
|
||||
use Drupal\Core\Config\ConfigFactoryInterface;
|
||||
use Drupal\Core\Config\ImmutableConfig;
|
||||
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_blog\Entity\Node\Post;
|
||||
use GuzzleHttp\Client;
|
||||
|
@ -37,7 +37,7 @@ final class PushBlogPostToSocialMedia implements EventSubscriberInterface {
|
|||
];
|
||||
}
|
||||
|
||||
public function onEntityUpdate(BaseEntityEvent $event): void {
|
||||
public function onEntityUpdate(AbstractEntityEvent $event): void {
|
||||
$entity = $event->getEntity();
|
||||
|
||||
if ($entity->getEntityTypeId() != 'node') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue