public function receive(Signal $signal)
{
if (!$signal instanceof Signal\ObjectStateService\SetContentStateSignal) {
return;
}
$contentInfo = $this->persistenceHandler->contentHandler()->loadContentInfo($signal->contentId);
$this->searchHandler->indexContent($this->persistenceHandler->contentHandler()->load($contentInfo->id, $contentInfo->currentVersionNo));
$locations = $this->persistenceHandler->locationHandler()->loadLocationsByContent($contentInfo->id);
foreach ($locations as $location) {
$this->searchHandler->indexLocation($location);
}
}