eZ\Publish\Core\Search\Legacy\Content\Handler::deleteContent PHP Method

deleteContent() public method

Deletes a content object from the index.
public deleteContent ( integer $contentId, integer | null $versionId = null )
$contentId integer
$versionId integer | null
    public function deleteContent($contentId, $versionId = null)
    {
        $this->indexerGateway->remove($contentId, $versionId);
    }