|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @file |
|
|
|
|
* Contains \Drupal\custom_pub\Plugin\RulesAction\SetCustomPublishingOption. |
|
|
|
|
* Contains \Drupal\roblib_bee_limits\Plugin\RulesAction\BatEventValidation. |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
namespace Drupal\roblib_bee_limits\Plugin\RulesAction; |
|
|
|
@ -30,10 +30,10 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
|
|
|
|
|
class BatEventValidation extends RulesActionBase { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Sets the custom publishing option on a given entity. |
|
|
|
|
* Validates a Bat Event. |
|
|
|
|
* |
|
|
|
|
* @param \Drupal\Core\Entity\EntityInterface $event |
|
|
|
|
* The entity to be saved. |
|
|
|
|
* The entity to be validated. |
|
|
|
|
*/ |
|
|
|
|
protected function doExecute(EntityInterface $event) { |
|
|
|
|
$user = \Drupal\user\Entity\User::load(\Drupal::currentUser()->id()); |
|
|
|
|