Commit 3a9c793 1 parent bc27d9f commit 3a9c793 Copy full SHA for 3a9c793
File tree 3 files changed +15
-3
lines changed
app/Drupal/niklan/src/Repository/KeyValue
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace Drupal \niklan \Repository \KeyValue ;
6
6
7
+ use Drupal \Core \StringTranslation \TranslatableMarkup ;
8
+
7
9
final class AboutSettings extends LanguageAwareSettingsStore {
8
10
9
11
public function getPhotoMediaId (): ?string {
@@ -25,7 +27,9 @@ public function setTitle(string $title): self {
25
27
}
26
28
27
29
public function getTitle (): string {
28
- return $ this ->getStore ()->get ('title ' , "I'm an alien 👽 " );
30
+ $ default = (string ) new TranslatableMarkup ("I'm an alien 👽 " );
31
+
32
+ return $ this ->getStore ()->get ('title ' , $ default );
29
33
}
30
34
31
35
public function setSubtitle (string $ subtitle ): self {
@@ -35,7 +39,9 @@ public function setSubtitle(string $subtitle): self {
35
39
}
36
40
37
41
public function getSubtitle (): string {
38
- return $ this ->getStore ()->get ('subtitle ' , 'Greetings traveller! ' );
42
+ $ default = (string ) new TranslatableMarkup ('Greetings traveller! ' );
43
+
44
+ return $ this ->getStore ()->get ('subtitle ' , $ default );
39
45
}
40
46
41
47
public function setSummary (string $ summary ): self {
Original file line number Diff line number Diff line change @@ -411,3 +411,9 @@ msgstr "Настройки страницы \"Контакты\""
411
411
412
412
msgid "Configure a contact page."
413
413
msgstr "Настройте страницу \" Контакты\" ."
414
+
415
+ msgid "I'm an alien 👽"
416
+ msgstr "Я инопланетянин 👽"
417
+
418
+ msgid "Greetings traveller!"
419
+ msgstr "Привет, путешественник!"
Original file line number Diff line number Diff line change 1
- name : Drupal
1
+ slogan : " Web Developer's Blog "
You can’t perform that action at this time.
0 commit comments