massive custom modules and themes D11 compatibility
This commit is contained in:
@@ -123,6 +123,7 @@ function materio_home_entity_bundle_field_info(EntityTypeInterface $entity_type,
|
||||
|
||||
return $fields;
|
||||
}
|
||||
return [];
|
||||
}
|
||||
/**
|
||||
* Implement hook_entity_base_field_info_alter().
|
||||
@@ -196,7 +197,7 @@ function materio_home_cron(){
|
||||
->accessCheck(FALSE)
|
||||
->condition('type', 'frontpage');
|
||||
$nids = $query->execute();
|
||||
$nodes = entity_load_multiple('node', $nids);
|
||||
$nodes = \Drupal::entityTypeManager()->getStorage('node')->loadMultiple($nids);
|
||||
foreach ($nodes as $nid => $node) {
|
||||
$logger->notice('cron | regenerating computed fields for '.$nid);
|
||||
$node->save();
|
||||
|
||||
Reference in New Issue
Block a user