encore du clean pck ça buggait avec un module fantome

This commit is contained in:
Valentin 2024-09-29 23:05:48 +02:00
parent a14717247f
commit da38f5e932
2 changed files with 0 additions and 9 deletions

View File

@ -35,7 +35,6 @@ module:
ctools: 0 ctools: 0
ctools_block: 0 ctools_block: 0
ctools_views: 0 ctools_views: 0
custom_content: 0
date_range_formatter: 0 date_range_formatter: 0
datetime: 0 datetime: 0
datetime_range: 0 datetime_range: 0

View File

@ -27,14 +27,6 @@ function caravane_preprocess_html(&$variables) {
*/ */
function caravane_preprocess_page(&$variables) { function caravane_preprocess_page(&$variables) {
if (\Drupal::service('path.current')->getPath() == '/node/2') {
// Fetch content from the homepage.
// $homepage_url = \Drupal::service('path.current')->getPath();
$base_url = \Drupal::request()->getSchemeAndHttpHost();
$uri = new Uri($base_url);
$homepage_content = \Drupal::httpClient()->get($uri);
$variables['homepage_content'] = $homepage_content->getBody();
}
} }
/** /**