ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
ContentLanguage.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\MetaBar\Factory
;
22
23
use
ILIAS\Data\LanguageTag
;
24
25
trait
ContentLanguage
26
{
27
protected
?
LanguageTag
$content_language =
null
;
28
29
public
function
withContentLanguage
(
LanguageTag
$content_language): self
30
{
31
$clone = clone $this;
32
$clone->content_language = $content_language;
33
return
$clone;
34
}
35
36
public
function
getContentLanguage
(): ?
LanguageTag
37
{
38
return
$this->content_language;
39
}
40
}
ILIAS\Data\LanguageTag
This class represents a valid language tag that should be used instead of plain strings.
Definition:
LanguageTag.php:40
ILIAS\Data\LanguageTag
Definition:
GrandFathered.php:21
ILIAS\GlobalScreen\Scope\MetaBar\Factory
Definition:
AbstractBaseItem.php:21
ILIAS\GlobalScreen\Scope\MetaBar\Factory\getContentLanguage
getContentLanguage()
Definition:
ContentLanguage.php:36
ILIAS\GlobalScreen\Scope\MetaBar\Factory\ContentLanguage
trait ContentLanguage
Definition:
ContentLanguage.php:26
ILIAS\GlobalScreen\Scope\MetaBar\Factory\withContentLanguage
withContentLanguage(LanguageTag $content_language)
Definition:
ContentLanguage.php:29
components
ILIAS
GlobalScreen
src
Scope
MetaBar
Factory
ContentLanguage.php
Generated on Sat Oct 18 2025 23:03:07 for ILIAS by
1.9.4 (using
Doxyfile
)