ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
◀ ilDoc Overview
CallbackTranslationCache.php
Go to the documentation of this file.
1
<?php
2
20
declare(strict_types=1);
21
22
use
ILIAS\Language\Setup\TranslationCache
;
23
27
final
readonly
class
CallbackTranslationCache
implements
TranslationCache
28
{
29
public
function
__construct
(
30
private
\Closure $invalidate
31
) {
32
}
33
34
public
function
invalidate
(
string
$lang_key): void
35
{
36
($this->invalidate)($lang_key);
37
}
38
}
CallbackTranslationCache
Lets a test observe or influence the invalidation.
Definition:
CallbackTranslationCache.php:28
CallbackTranslationCache\__construct
__construct(private \Closure $invalidate)
Definition:
CallbackTranslationCache.php:29
CallbackTranslationCache\invalidate
invalidate(string $lang_key)
Definition:
CallbackTranslationCache.php:34
ILIAS\Language\Setup\TranslationCache
Cache of the translations of a language, which must be invalidated whenever lng_modules changes.
Definition:
TranslationCache.php:29
components
ILIAS
Language
tests
Setup
CallbackTranslationCache.php
Generated on Wed Nov 11 2026 23:07:39 for ILIAS by
1.9.4 (using
Doxyfile
)