|
@@ -37,7 +37,7 @@ class ComputedProdVariationsReferences extends EntityReferenceFieldItemList
|
|
protected function computeValue() {
|
|
protected function computeValue() {
|
|
$query = \Drupal::entityQuery('commerce_product_variation')
|
|
$query = \Drupal::entityQuery('commerce_product_variation')
|
|
->condition('status', 1)
|
|
->condition('status', 1)
|
|
- ->sort('created', 'DESC')
|
|
|
|
|
|
+ ->sort('created', 'ASC')
|
|
// ->exists('field_visuel')
|
|
// ->exists('field_visuel')
|
|
// ->condition('type', 'article')
|
|
// ->condition('type', 'article')
|
|
->range(0,12);
|
|
->range(0,12);
|