Browse Source

BatEventValidation doExecute now uses more specific type

master
ppound 4 years ago
parent
commit
3551db21c2
  1. 4
      src/Plugin/RulesAction/BatEventValidation.php

4
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

Loading…
Cancel
Save