eZ\Publish\Core\Search\Common\Slot\Trash::receive PHP Method

receive() public method

Receive the given $signal and react on it.
public receive ( eZ\Publish\Core\SignalSlot\Signal $signal )
$signal eZ\Publish\Core\SignalSlot\Signal
    public function receive(Signal $signal)
    {
        if (!$signal instanceof Signal\TrashService\TrashSignal) {
            return;
        }
        if ($signal->contentTrashed) {
            $this->searchHandler->deleteContent($signal->contentId);
        }
        $this->searchHandler->deleteLocation($signal->locationId, $signal->contentId);
    }
Trash