ManagesStacks
trait ManagesStacks
Constants
| protected PUSHES_CONTEXT_KEY |
Context key for finished, captured push sections. |
| protected PREPENDS_CONTEXT_KEY |
Context key for finished, captured prepend sections. |
| protected PUSH_STACK_CONTEXT_KEY |
Context key for the stack of in-progress push sections. |
Methods
Start injecting content into a push section.
No description
Stop injecting content into a push section.
Append content to a given push section.
Start prepending content into a push section.
Stop prepending content into a push section.
Prepend content to a given stack.
Get the string contents of a push section.
Determine if the given stack is empty.
Flush all of the stacks.
Details
at line 30
void
startPush(string $section, string $content = '')
Start injecting content into a push section.
at line 41
protected void
pushStack(string $section)
No description
at line 62
string
stopPush()
Stop injecting content into a push section.
at line 78
protected void
extendPush(string $section, string $content)
Append content to a given push section.
at line 100
void
startPrepend(string $section, string $content = '')
Start prepending content into a push section.
at line 116
string
stopPrepend()
Stop prepending content into a push section.
at line 132
protected void
extendPrepend(string $section, string $content)
Prepend content to a given stack.
at line 154
string
yieldPushContent(string $section, string $default = '')
Get the string contents of a push section.
at line 179
bool
isStackEmpty(string $section)
Determine if the given stack is empty.
at line 190
void
flushStacks()
Flush all of the stacks.