lib/Slot/RemoveTranslation.php
public function receive(Signal $signal)
    {
        if (!$signal instanceof Signal\ContentService\RemoveTranslationSignal) {
            return;
        }

        $contentInfo = $this->persistenceHandler->contentHandler()->loadContentInfo(
            $signal->contentId
        );
        if (!$contentInfo->isPublished) {
            return;
        }

        $this->searchHandler->indexContent(
            $this->persistenceHandler->contentHandler()->load(
                $contentInfo->id,
                $contentInfo->currentVersionNo
            )
        );
    }
public function receive(Signal $signal)
    {
        if (!$signal instanceof Signal\ContentService\RemoveTranslationSignal) {
            return;
        }

        $contentInfo = $this->persistenceHandler->contentHandler()->loadContentInfo(
            $signal->contentId
        );
        if (!$contentInfo->isPublished) {
            return;
        }

        $this->searchHandler->indexContent(
            $this->persistenceHandler->contentHandler()->load(
                $contentInfo->id,
                $contentInfo->currentVersionNo
            )
        );
    }
public function receive ( Signal $ signal ) { if ( ! $ signal instanceof Signal \ ContentService \ RemoveTranslationSignal ) { return ; } $ contentInfo = $ this -> persistenceHandler -> contentHandler ( ) -> loadContentInfo ( $ signal -> contentId ) ; if ( ! $ contentInfo -> isPublished ) { return ; } $ this -> searchHandler -> indexContent ( $ this -> persistenceHandler -> contentHandler ( ) -> load ( $ contentInfo -> id , $ contentInfo -> currentVersionNo ) ) ; }
Receive the given $signal and react on it.

@param \eZ\Publish\Core\SignalSlot\Signal $signal
Receive the given $signal and react on it .