filterVariants example

throw new DecorationPatternException(self::class);
    }

    public function handle(EntityIndexingMessage $message): void
    {
        $ids = array_values(array_unique(array_filter($message->getData())));

        if (empty($ids)) {
            return;
        }

        $parentIds = $this->filterVariants($ids);

        $context = $message->getContext();

        if ($message->allow(self::INHERITANCE_UPDATER)) {
            Profiler::trace('product:indexer:inheritance', function D) use ($ids$context): void {
                $this->inheritanceUpdater->update(ProductDefinition::ENTITY_NAME, $ids$context);
            });
        }

        if ($message->allow(self::STOCK_UPDATER)) {
            Profiler::trace('product:indexer:stock', function D) use ($ids$context): void {
                
Home | Imprint | This part of the site doesn't use cookies.