if (empty($ids) || !
$message instanceof CustomerIndexingMessage
) { return;
} $context =
$message->
getContext();
if (!
empty($message->
getIds())) { $this->customerNewsletterSalesChannelsUpdater->
updateCustomersRecipient($message->
getIds());
} if ($message->
allow(self::MANY_TO_MANY_ID_FIELD_UPDATER
)) { $this->manyToManyIdFieldUpdater->
update(CustomerDefinition::ENTITY_NAME,
$ids,
$context);
} if ($message->
allow(self::NEWSLETTER_SALES_CHANNELS_UPDATER
)) { $this->customerNewsletterSalesChannelsUpdater->
update($ids, true
);
} $this->eventDispatcher->
dispatch(new CustomerIndexerEvent($ids,
$context,
$message->
getSkip()));
} public function getOptions(): array
{