protected function ContentEntityStorageTrait::indexEntityRevisionTree in Multiversion 8
Same name and namespace in other branches
- 8.2 src/Entity/Storage/ContentEntityStorageTrait.php \Drupal\multiversion\Entity\Storage\ContentEntityStorageTrait::indexEntityRevisionTree()
Indexes the revision tree.
Parameters
\Drupal\Core\Entity\EntityInterface $entity:
array $branch:
1 call to ContentEntityStorageTrait::indexEntityRevisionTree()
- ContentEntityStorageTrait::save in src/
Entity/ Storage/ ContentEntityStorageTrait.php
File
- src/
Entity/ Storage/ ContentEntityStorageTrait.php, line 359
Class
Namespace
Drupal\multiversion\Entity\StorageCode
protected function indexEntityRevisionTree(EntityInterface $entity, $branch) {
$workspace = isset($entity->workspace) ? $entity->workspace->entity : null;
\Drupal::service('multiversion.entity_index.factory')
->get('multiversion.entity_index.rev.tree', $workspace)
->updateTree($entity, $branch);
}