class SlotsHelper extends Helper
SlotsHelper manages template slots.
setCharset(string $charset) Sets the default charset. | from Helper | |
string | getCharset() Gets the default charset. | from Helper |
start(string $name) Starts a new slot. | ||
stop() Stops a slot. | ||
bool | has(string $name) Returns true if the slot exists. | |
string | get(string $name, bool|string $default = false) Gets the slot value. | |
set(string $name, string $content) Sets a slot value. | ||
bool | output(string $name, bool|string $default = false) Outputs a slot. | |
string | getName() Returns the canonical name of this helper. |
Sets the default charset.
Gets the default charset.
Starts a new slot.
This method starts an output buffer that will be closed when the stop() method is called.
Stops a slot.
Returns true if the slot exists.
Gets the slot value.
Sets a slot value.
Outputs a slot.
Returns the canonical name of this helper.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Templating/Helper/SlotsHelper.html