Contao\Template::__get PHP Method

__get() public method

Return an object property
public __get ( string $strKey ) : mixed
$strKey string The property name
return mixed The property value
    public function __get($strKey)
    {
        if (isset($this->arrData[$strKey])) {
            if (is_object($this->arrData[$strKey]) && is_callable($this->arrData[$strKey])) {
                return $this->arrData[$strKey]();
            }
            return $this->arrData[$strKey];
        }
        return parent::__get($strKey);
    }