ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
with_content_and_referenced_language.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
8 
21 {
22  global $DIC;
23  $f = $DIC->ui()->factory();
24  $renderer = $DIC->ui()->renderer();
25  $data_factaory = new DataFactory();
26 
27  $link = $f->link()->standard("Abrir ILIAS", "http://www.ilias.de")
28  ->withLanguageOfReferencedContent($data_factaory->languageTag("de"))
29  ->withContentLanguage($data_factaory->languageTag("es"));
30  return $renderer->render($link);
31 }
$renderer
withContentLanguage(LanguageTag $content_language)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:25