Contao\Controller::parseSimpleTokens PHP Method

parseSimpleTokens() protected method

Parse simple tokens that can be used to personalize newsletters
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use StringUtil::parseSimpleTokens() instead.
protected parseSimpleTokens ( string $strBuffer, array $arrData ) : string
$strBuffer string The text with the tokens to be replaced
$arrData array The replacement data as array
return string The text with the replaced tokens
    protected function parseSimpleTokens($strBuffer, $arrData)
    {
        @trigger_error('Using Controller::parseSimpleTokens() has been deprecated and will no longer work in Contao 5.0. Use StringUtil::parseSimpleTokens() instead.', E_USER_DEPRECATED);
        return \StringUtil::parseSimpleTokens($strBuffer, $arrData);
    }