custom/plugins/NxsMigrateShortDescription/src/NxsMigrateShortDescription.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Nxs\NxsMigrateShortDescription;
  3. use Shopware\Core\Framework\DataAbstractionLayer\Indexing\EntityIndexerRegistry;
  4. use Shopware\Core\Framework\Plugin;
  5. use Shopware\Core\Framework\Plugin\Context\UpdateContext;
  6. class NxsMigrateShortDescription extends Plugin
  7. {
  8.     public function postUpdate(UpdateContext $updateContext): void
  9.     {
  10.         parent::postUpdate($updateContext);
  11.         $indexerMessageSender $this->container->get(EntityIndexerRegistry::class);
  12.         $indexerMessageSender->sendIndexingMessage(['product.indexer']);
  13.     }
  14. }