vendor/shopware/core/Content/Flow/Dispatching/Action/StopFlowAction.php line 29

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.     /**
  11.      * @return array<string, string|array{0: string, 1: int}|list<array{0: string, 1?: int}>>
  12.      */
  13.     public static function getSubscribedEvents()
  14.     {
  15.         return [
  16.             self::getName() => 'handle',
  17.         ];
  18.     }
  19.     public function requirements(): array
  20.     {
  21.         return [];
  22.     }
  23.     public function handle(FlowEvent $event): void
  24.     {
  25.         $event->stop();
  26.     }
  27. }