ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
with_content_and_referenced_language.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Link\Standard
;
22
23
use
ILIAS\Data\Factory
as DataFactory;
24
36
function
with_content_and_referenced_language
()
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
$renderer
Definition:
build_bootstrap.php:83
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:36
ILIAS\UI\examples\Link\Standard
Definition:
base.php:21
ILIAS\UI\examples\Link\Standard\with_content_and_referenced_language
with_content_and_referenced_language()
Definition:
with_content_and_referenced_language.php:36
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
UI
src
examples
Link
Standard
with_content_and_referenced_language.php
Generated on Sat Oct 18 2025 23:04:40 for ILIAS by
1.9.4 (using
Doxyfile
)