From ef844c396e43e95e19f56dfd3358cadf6ab7200e Mon Sep 17 00:00:00 2001 From: Molkobain Date: Tue, 11 Aug 2020 16:24:56 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B02847=20-=20Add=20UIBlock::GetBlockCode()?= =?UTF-8?q?=20method=20to=20get=20the=20code=20within=20a=20TWIG=20no=20ma?= =?UTF-8?q?tter=20the=20object=20class=20(easier=20than=20calling=20the=20?= =?UTF-8?q?right=20class=20constant)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/application/UI/UIBlock.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sources/application/UI/UIBlock.php b/sources/application/UI/UIBlock.php index ec59edd63..0bb634ca6 100644 --- a/sources/application/UI/UIBlock.php +++ b/sources/application/UI/UIBlock.php @@ -125,6 +125,17 @@ abstract class UIBlock implements iUIBlock return uniqid(static::BLOCK_CODE.'-'); } + /** + * Return the block code of the object instance + * + * @see static::BLOCK_CODE + * @return string + */ + public function GetBlockCode() + { + return static::BLOCK_CODE; + } + /** * @inheritDoc */