refactored home database materials

This commit is contained in:
2020-12-27 11:09:03 +01:00
parent 0fc6347585
commit a2773b1b20
10 changed files with 294 additions and 55 deletions

View File

@@ -45,7 +45,7 @@ class ComputedMaterialsReferences extends EntityReferenceFieldItemList
->sort('created', 'DESC')
->range(0,200);
$results = $query->execute();
$nids = array_rand($results, 30);
$nids = array_rand($results, 70);
foreach ($nids as $key => $nid) {
$this->list[$key] = $this->createItem($key, $nid);
}