platform/src/Core/Content/Flow/Dispatching/Action/StopFlowAction.php line 26

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Flow\Dispatching\Action;
  3. use Shopware\Core\Framework\Event\FlowEvent;
  4. class StopFlowAction extends FlowAction
  5. {
  6.     public static function getName(): string
  7.     {
  8.         return 'action.stop.flow';
  9.     }
  10.     public static function getSubscribedEvents()
  11.     {
  12.         return [
  13.             self::getName() => 'handle',
  14.         ];
  15.     }
  16.     public function requirements(): array
  17.     {
  18.         return [];
  19.     }
  20.     public function handle(FlowEvent $event): void
  21.     {
  22.         $event->stop();
  23.     }
  24. }