Webiny\Component\Entity\AbstractEntity::getMaskedValue PHP Method

getMaskedValue() public method

public getMaskedValue ( )
    public function getMaskedValue()
    {
        $maskItems = [];
        preg_match_all('/\\{(.*?)\\}/', static::$entityMask, $maskItems);
        $maskedValue = $this->str(static::$entityMask);
        foreach ($maskItems[1] as $attr) {
            $maskedValue->replace('{' . $attr . '}', $this->getAttribute($attr)->getValue());
        }
        return $maskedValue->val();
    }