public function iterate(?array
$offset): ?EntityIndexingMessage
{ $iterator =
$this->iteratorFactory->
createIterator($this->repository->
getDefinition(),
$offset);
$ids =
$iterator->
fetch();
if (empty($ids)) { return null;
} return new LandingPageIndexingMessage(array_values($ids),
$iterator->
getOffset());
} public function update(EntityWrittenContainerEvent
$event): ?EntityIndexingMessage
{ $updates =
$event->
getPrimaryKeys(LandingPageDefinition::ENTITY_NAME
);
if (empty($updates)) { return null;
} return new LandingPageIndexingMessage(array_values($updates), null,
$event->
getContext());
}