Contao\Template::__call PHP Method

__call() public method

Execute a callable and return the result
public __call ( string $strKey, array $arrParams ) : mixed
$strKey string The name of the key
$arrParams array The parameters array
return mixed The callable return value
    public function __call($strKey, $arrParams)
    {
        if (!isset($this->arrData[$strKey]) || !is_callable($this->arrData[$strKey])) {
            throw new \InvalidArgumentException("{$strKey} is not set or not a callable");
        }
        return call_user_func_array($this->arrData[$strKey], $arrParams);
    }