encore du clean pck ça buggait avec un module fantome
This commit is contained in:
parent
a14717247f
commit
da38f5e932
|
@ -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
|
||||||
|
|
|
@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue