map sur home Got to site devient Voir le site
This commit is contained in:
		@@ -50,7 +50,7 @@ class SitesMap extends BlockBase {
 | 
			
		||||
 | 
			
		||||
      $link_options = ['absolute' => TRUE, 'attributes' => ['class' => 'site-link'], 'language' => \Drupal::languageManager()->getLanguage($langcode)]; // Passer 'absolute' à TRUE
 | 
			
		||||
      $site_url = $site->toUrl('canonical', $link_options)->toString(); // URL absolue pour le data-url
 | 
			
		||||
      $site_link_object = Link::createFromRoute(t("got to site"), 'entity.node.canonical', ['node' => $site->id()], $link_options);
 | 
			
		||||
      $site_link_object = Link::createFromRoute(t("Voir le site"), 'entity.node.canonical', ['node' => $site->id()], $link_options);
 | 
			
		||||
      $link = $site_link_object->toString()->getGeneratedLink();
 | 
			
		||||
 | 
			
		||||
      $datacontent = htmlspecialchars("<strong>$title</strong><br>$subtitle<br>$link");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user