From 273b3be6067c31ea95edb26330d09f7b85801d88 Mon Sep 17 00:00:00 2001
From: Philipp Halle
Date: Thu, 15 Feb 2024 15:49:29 +0100
Subject: [PATCH] [TASK] Add method to check if selected profile is a
translated version
---
Classes/Domain/Model/Profile.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Classes/Domain/Model/Profile.php b/Classes/Domain/Model/Profile.php
index e3a1503..03b253a 100644
--- a/Classes/Domain/Model/Profile.php
+++ b/Classes/Domain/Model/Profile.php
@@ -175,4 +175,9 @@ public function getLanguageUid(): int
{
return $this->_languageUid;
}
+
+ public function getIsTranslation(): bool
+ {
+ return $this->_localizedUid !== $this->uid;
+ }
}