ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
with_content_and_referenced_language.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\Data\Factory as DataFactory;
24
37{
38 global $DIC;
39 $f = $DIC->ui()->factory();
40 $renderer = $DIC->ui()->renderer();
41 $data_factaory = new DataFactory();
42
43 $link = $f->link()->standard("Abrir ILIAS", "http://www.ilias.de")
44 ->withLanguageOfReferencedContent($data_factaory->languageTag("de"))
45 ->withContentLanguage($data_factaory->languageTag("es"));
46 return $renderer->render($link);
47}
$renderer
Builds data types.
Definition: Factory.php:36
global $DIC
Definition: shib_login.php:26