upgraded all cutom modules, themes & profile following upgrade-status

This commit is contained in:
2024-08-20 19:47:47 +02:00
parent 38501ecf4d
commit ee271ab4d8
17 changed files with 21 additions and 9 deletions

View File

@@ -193,6 +193,7 @@ function materio_home_cron(){
// Short-running operation example, not using a queue
$query = \Drupal::entityQuery('node')
->condition('status', 1)
->accessCheck(FALSE)
->condition('type', 'frontpage');
$nids = $query->execute();
$nodes = entity_load_multiple('node', $nids);

View File

@@ -78,7 +78,8 @@ class AjaxHomeController extends ControllerBase {
$view_builder = $this->entityTypeManager()->getViewBuilder('node');
$renderable = $view_builder->view($node, 'home_full');
$rendered = $this->renderer->executeInRenderContext(new RenderContext(), function () use ($renderable) {
return render($renderable);
// return render($renderable);
return \Drupal::service('renderer')->render($renderable);
});
$data['rendered'] = $rendered;

View File

@@ -41,6 +41,7 @@ class ComputedArticlesReferences extends EntityReferenceFieldItemList
->sort('created', 'DESC')
->exists('field_visuel')
->range(0,12)
->accessCheck()
->condition('type', 'article');
$nids = $query->execute();
$i = 0;

View File

@@ -45,6 +45,7 @@ class ComputedMaterialsReferences extends EntityReferenceFieldItemList
->condition('field_materiau_images.%delta', 3, '>')
->exists('field_materiau_images')
->sort('created', 'DESC')
->accessCheck()
->range(0,200);
$results = $query->execute();
if ($results) {

View File

@@ -39,6 +39,7 @@ class ComputedShowroomsReferences extends EntityReferenceFieldItemList
protected function computeValue() {
$query = \Drupal::entityQuery('taxonomy_term')
->condition('status', 1)
->accessCheck(FALSE)
->condition('vid', 'showroom');
// remove masqué