public function EntityUsageBatchManager::recreate in Entity Usage 8.2
Recreate the entity usage statistics.
Generate a batch to recreate the statistics for all entities. Note that if we force all statistics to be created, there is no need to separate them between source / target cases. If all entities are going to be re-tracked, tracking all of them as source is enough, because there could never be a target without a source.
File
- src/
EntityUsageBatchManager.php, line 74
Class
- EntityUsageBatchManager
- Manages Entity Usage integration with Batch API.
Namespace
Drupal\entity_usageCode
public function recreate() {
$batch = $this
->generateBatch();
batch_set($batch);
}