public function postUpdate(LifecycleEventArgs $args) { $entity = $args->getEntity(); if ($this->indexer->isIndexable($entity) && $this->indexer->isRealtime($entity)) { $this->indexer->indexEntity($entity); } }