Clickalicious\PhpMemAdmin\App::renderString PHP Метод

renderString() защищенный Метод

Renders the content of $string with variables from $variables.
Автор: Benjamin Carl ([email protected])
protected renderString ( string $string, array $variables = [] ) : string
$string string The html of the template
$variables array The template vars used for rendering (key => value)
Результат string The rendered string
    protected function renderString($string, array $variables = array())
    {
        foreach ($variables as $key => $value) {
            $string = str_replace('{{' . $key . '}}', $value, $string);
        }
        return $string;
    }