ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
HasContentLanguage.php
Go to the documentation of this file.
1<?php
17declare(strict_types=1);
18
19namespace ILIAS\UI\Component;
20
22
24{
29 public function withContentLanguage(LanguageTag $language): self;
30
34 public function getContentLanguage(): ?LanguageTag;
35}
This class represents a valid language tag that should be used instead of plain strings.
Definition: LanguageTag.php:40
getContentLanguage()
See comment in withContentLanguage.
withContentLanguage(LanguageTag $language)
If the link text also is not translated (e.g., because it is a formal title that should be kept in th...