fixed custom module d10 copatibility
This commit is contained in:
parent
40df380c3e
commit
096aa350d9
|
@ -8,6 +8,7 @@ use Drupal\Core\Field\FieldItemList;
|
|||
use Drupal\Core\TypedData\TypedDataInterface;
|
||||
use Drupal\Core\Field\BaseFieldDefinition;
|
||||
use Drupal\Core\TypedData\ComputedItemListTrait;
|
||||
use Drupal\menu_test\Access\AccessCheck;
|
||||
|
||||
// https://www.drupal.org/node/2112677
|
||||
// https://www.cornel.co/article/entity-reference-computed-field-example-drupal
|
||||
|
@ -40,6 +41,7 @@ class ComputedCommerceProductReferences extends EntityReferenceFieldItemList
|
|||
->sort('created', 'ASC')
|
||||
// ->exists('field_visuel')
|
||||
->condition('type', 'materio_product_license_type')
|
||||
->AccessCheck()
|
||||
->range(0,12);
|
||||
$ids = $query->execute();
|
||||
$i = 0;
|
||||
|
|
Loading…
Reference in New Issue