$ids =
$message->
getData();
$ids =
array_unique(array_filter($ids));
if (empty($ids) || !
$message instanceof NewsletterRecipientIndexingMessage
) { return;
} $context =
$message->
getContext();
if ($message->
allow(self::CUSTOMER_NEWSLETTER_SALES_CHANNELS_UPDATER
)) { if ($message->
isDeletedNewsletterRecipients()) { $this->customerNewsletterSalesChannelsUpdater->
delete($ids);
} else { $this->customerNewsletterSalesChannelsUpdater->
update($ids);
} } $this->eventDispatcher->
dispatch(new NewsletterRecipientIndexerEvent($ids,
$context,
$message->
getSkip()));
} public function getOptions(): array
{