From 6bb8574547182fdbff373a019689b475e7024d62 Mon Sep 17 00:00:00 2001 From: Ingo Kruetzen Date: Thu, 24 Oct 2024 14:00:52 +0200 Subject: [PATCH] add function to get FieldInformation in template --- plugin/EstateDetail.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugin/EstateDetail.php b/plugin/EstateDetail.php index 0e4aea8be..34de413a5 100644 --- a/plugin/EstateDetail.php +++ b/plugin/EstateDetail.php @@ -265,6 +265,16 @@ public function getSimilarEstates(): string return $pSimilarEstates->generateHtmlOutput($this->_estateId); } + /** + * + * @param $field + * @return string + */ + + public function getFieldInformation(string $field): array + { + return $this->getEnvironment()->getFieldnames()->getFieldInformation($field, onOfficeSDK::MODULE_ESTATE); + } /** *