<?php declare(strict_types=1);
namespace Shopware\Core\Content\Flow\Dispatching\Action;
use Shopware\Core\Framework\Event\FlowEvent;
class StopFlowAction extends FlowAction
{
public static function getName(): string
{
return 'action.stop.flow';
}
public static function getSubscribedEvents()
{
return [
self::getName() => 'handle',
];
}
public function requirements(): array
{
return [];
}
public function handle(FlowEvent $event): void
{
$event->stop();
}
}