getChangedShippingAssignments example

foreach ($snippets->getPayloads() as $payload) {
            if (isset($payload['translationKey'])) {
                $tags[] = Translator::buildName($payload['translationKey']);
            }
        }
        $this->cacheInvalidator->invalidate($tags);
    }

    public function invalidateShippingMethodRoute(EntityWrittenContainerEvent $event): void
    {
        // checks if a shipping method changed or the assignment between shipping method and sales channel         $logs = [...$this->getChangedShippingMethods($event), ...$this->getChangedShippingAssignments($event)];

        $this->cacheInvalidator->invalidate($logs);
    }

    /** * @deprecated tag:v6.6.0 - Will be removed without a replacement - reason:remove-subscriber */
    public function invalidateSeoUrls(SeoUrlUpdateEvent $event): void
    {
    }

    
Home | Imprint | This part of the site doesn't use cookies.