From 3551db21c2faa460ece359674714d94f6ab851f1 Mon Sep 17 00:00:00 2001 From: ppound Date: Mon, 2 Nov 2020 15:55:17 -0400 Subject: [PATCH] BatEventValidation doExecute now uses more specific type --- src/Plugin/RulesAction/BatEventValidation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugin/RulesAction/BatEventValidation.php b/src/Plugin/RulesAction/BatEventValidation.php index 120bcbe..80d0a29 100644 --- a/src/Plugin/RulesAction/BatEventValidation.php +++ b/src/Plugin/RulesAction/BatEventValidation.php @@ -32,10 +32,10 @@ class BatEventValidation extends RulesActionBase { /** * Validates a Bat Event. * - * @param \Drupal\Core\Entity\EntityInterface $event + * @param \Drupal\bat_event\Entity\Event $event * The entity to be validated. */ - protected function doExecute(EntityInterface $event) { + protected function doExecute(\Drupal\bat_event\Entity\Event $event) { $user = \Drupal\user\Entity\User::load(\Drupal::currentUser()->id()); $event_type = bat_event_type_load($event->bundle()); // we only want to limit hourly reservations