You are here

protected function ContentIndexerTrait::unIndexContent in Tome 8

Removes content from the index.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: An entity to be indexed.

1 call to ContentIndexerTrait::unIndexContent()
Exporter::deleteContentExport in modules/tome_sync/src/Exporter.php
Deletes an exported content entity.

File

modules/tome_sync/src/ContentIndexerTrait.php, line 94

Class

ContentIndexerTrait
Provides methods for reading and writing the index file.

Namespace

Drupal\tome_sync

Code

protected function unIndexContent(ContentEntityInterface $entity) {
  $name = TomeSyncHelper::getContentName($entity);
  $this
    ->unIndexContentByName($name);
}