N°2847 - Add UIBlock::GetBlockCode() method to get the code within a TWIG no matter the object class (easier than calling the right class constant)

This commit is contained in:
Molkobain
2020-08-11 16:24:56 +02:00
parent dfdeb21023
commit ef844c396e

View File

@@ -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
*/