eZ\Publish\Core\Search\Legacy\Content\WordIndexer\Gateway::remove PHP Method

remove() abstract public method

Remove whole content or a specific version from index.
abstract public remove ( mixed $contentId, mixed | null $versionId = null )
$contentId mixed
$versionId mixed | null
    public abstract function remove($contentId, $versionId = null);

Usage Example

Beispiel #1
0
 /**
  * Deletes a content object from the index.
  *
  * @param int $contentId
  * @param int|null $versionId
  */
 public function deleteContent($contentId, $versionId = null)
 {
     $this->indexerGateway->remove($contentId, $versionId);
 }