upgraded all cutom modules, themes & profile following upgrade-status
This commit is contained in:
@@ -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);
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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) {
|
||||
|
@@ -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é
|
||||
|
||||
|
Reference in New Issue
Block a user