W3cubDocs

/Symfony 4.1

Helper

abstract class Helper implements HelperInterface

Helper is the base class for all helper classes.

Most of the time, a Helper is an adapter around an existing class that exposes a read-only interface for templates.

Properties

protected $charset

Methods

setCharset(string $charset)

Sets the default charset.

string getCharset()

Gets the default charset.

Details

setCharset(string $charset)

Sets the default charset.

Parameters

string $charset The charset

string getCharset()

Gets the default charset.

Return Value

string The default charset

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Templating/Helper/Helper.html