protected function ContentEntityStorageTrait::indexEntitySequence in Multiversion 8.2
Same name and namespace in other branches
- 8 src/Entity/Storage/ContentEntityStorageTrait.php \Drupal\multiversion\Entity\Storage\ContentEntityStorageTrait::indexEntitySequence()
Indexes entity sequence.
Parameters
\Drupal\Core\Entity\EntityInterface $entity:
1 call to ContentEntityStorageTrait::indexEntitySequence()
- ContentEntityStorageTrait::save in src/
Entity/ Storage/ ContentEntityStorageTrait.php
File
- src/
Entity/ Storage/ ContentEntityStorageTrait.php, line 324
Class
Namespace
Drupal\multiversion\Entity\StorageCode
protected function indexEntitySequence(EntityInterface $entity) {
$workspace = Workspace::load($this
->getWorkspaceId());
\Drupal::service('multiversion.entity_index.factory')
->get('multiversion.entity_index.sequence', $workspace)
->add($entity);
}