Symfony\Component\Templating\Helper\SlotsHelper
SlotsHelper manages template slots.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class SlotsHelper
extends Helper
{
- // members
- protected array $slots;
- protected array $openSlots;
- // Inherited members from Helper
- protected string $charset;
- // methods
- public void start()
- public void stop()
- public Boolean has()
- public string get()
- public void set()
- public Boolean output()
- public string getName()
- // Inherited methods from Helper
- public void setCharset()
- public string getCharset()
Hierarchy
Members
protected
- $charset
- $openSlots
- $slots
Methods
public
- get() — Gets the slot value.
- getName() — Returns the canonical name of this helper.
- has() — Returns true if the slot exists.
- output() — Outputs a slot.
- set() — Sets a slot value.
- start() — Starts a new slot.
- stop() — Stops a slot.
Inherited from Symfony\Component\Templating\Helper\Helper
public
- getCharset() — Gets the default charset.
- setCharset() — Sets the default charset.