custom/plugins/OkeonlineKejeDeliveryAddress/src/Storefront/Subscriber/CustomerAddressCreateValidationEventSubscriber.php line 17

Open in your IDE?
  1. <?php
  2. namespace Okeonline\KejeDeliveryAddress\Storefront\Subscriber;
  3. use Shopware\Core\Framework\Validation\BuildValidationEvent;
  4. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  5. class CustomerAddressCreateValidationEventSubscriber implements EventSubscriberInterface {
  6.     public static function getSubscribedEvents(): array
  7.     {
  8.         return [
  9.             'framework.validation.address.create' => 'beforeValidation'
  10.         ];
  11.     }
  12.     public function beforeValidation(BuildValidationEvent $event)
  13.     {
  14.         $properties $event->getDefinition()->getProperties();
  15.         unset($properties['salutationId']);
  16.     }
  17. }