ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
with_content_and_referenced_language.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Link\Standard
;
6
use
ILIAS\Data\Factory
as
DataFactory
;
7
8
function
with_content_and_referenced_language
()
9
{
10
global
$DIC
;
11
$f
= $DIC->ui()->factory();
12
$renderer = $DIC->ui()->renderer();
13
$data_factaory =
new
DataFactory
();
14
15
$link =
$f
->link()->standard(
"Abrir ILIAS"
,
"http://www.ilias.de"
)
16
->withLanguageOfReferencedContent($data_factaory->languageTag(
"de"
))
17
->
withContentLanguage
($data_factaory->languageTag(
"es"
));
18
return
$renderer->render($link);
19
}
ILIAS\GlobalScreen\Scope\MetaBar\Factory\withContentLanguage
withContentLanguage(LanguageTag $content_language)
Definition:
ContentLanguage.php:29
$DIC
global $DIC
Definition:
feed.php:28
ILIAS\UI\examples\Link\Standard
Definition:
base.php:5
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
Factory
ILIAS\UI\examples\Link\Standard\with_content_and_referenced_language
with_content_and_referenced_language()
Definition:
with_content_and_referenced_language.php:8
src
UI
examples
Link
Standard
with_content_and_referenced_language.php
Generated on Wed Sep 10 2025 14:12:11 for ILIAS by
1.8.13 (using
Doxyfile
)