| @@ 66-80 (lines=15) @@ | ||
| 63 | /** |
|
| 64 | * {@inheritdoc} |
|
| 65 | */ |
|
| 66 | public function loadList(array $ids): iterable |
|
| 67 | { |
|
| 68 | return $this->getMultipleCacheItems( |
|
| 69 | $ids, |
|
| 70 | 'ez-language-', |
|
| 71 | function (array $cacheMissIds) { |
|
| 72 | $this->logger->logCall(__CLASS__ . '::loadList', ['languages' => $cacheMissIds]); |
|
| 73 | ||
| 74 | return $this->persistenceHandler->contentLanguageHandler()->loadList($cacheMissIds); |
|
| 75 | }, |
|
| 76 | function (Language $language) { |
|
| 77 | return ['language-' . $language->id]; |
|
| 78 | } |
|
| 79 | ); |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * {@inheritdoc} |
|
| @@ 105-119 (lines=15) @@ | ||
| 102 | /** |
|
| 103 | * {@inheritdoc} |
|
| 104 | */ |
|
| 105 | public function loadListByLanguageCodes(array $languageCodes): iterable |
|
| 106 | { |
|
| 107 | return $this->getMultipleCacheItems( |
|
| 108 | $languageCodes, |
|
| 109 | 'ez-language-code-', |
|
| 110 | function (array $cacheMissIds) { |
|
| 111 | $this->logger->logCall(__CLASS__ . '::loadListByLanguageCodes', ['languages' => $cacheMissIds]); |
|
| 112 | ||
| 113 | return $this->persistenceHandler->contentLanguageHandler()->loadListByLanguageCodes($cacheMissIds); |
|
| 114 | }, |
|
| 115 | function (Language $language) { |
|
| 116 | return ['language-' . $language->id]; |
|
| 117 | } |
|
| 118 | ); |
|
| 119 | } |
|
| 120 | ||
| 121 | /** |
|
| 122 | * {@inheritdoc} |
|
| @@ 87-101 (lines=15) @@ | ||
| 84 | /** |
|
| 85 | * {@inheritdoc} |
|
| 86 | */ |
|
| 87 | public function loadGroups(array $groupIds) |
|
| 88 | { |
|
| 89 | return $this->getMultipleCacheItems( |
|
| 90 | $groupIds, |
|
| 91 | 'ez-content-type-group-', |
|
| 92 | function (array $cacheMissIds) { |
|
| 93 | $this->logger->logCall(__CLASS__ . '::loadGroups', ['groups' => $cacheMissIds]); |
|
| 94 | ||
| 95 | return $this->persistenceHandler->contentTypeHandler()->loadGroups($cacheMissIds); |
|
| 96 | }, |
|
| 97 | function (Type\Group $group) { |
|
| 98 | return ['type-group-' . $group->id]; |
|
| 99 | } |
|
| 100 | ); |
|
| 101 | } |
|
| 102 | ||
| 103 | /** |
|
| 104 | * {@inheritdoc} |
|