trait
Illuminate
/
View
/
Concerns
/
ManagesStacks
You are viewing an older version of the documentation. For the latest, please visit master documentation.
ManagesStacks
Properties
protected
$pushes array
All of the finished, captured push sections.
Default: []
protected
$prepends array
All of the finished, captured prepend sections.
Default: []
protected
$pushStack array
The stack of in-progress push sections.
Default: []
Methods
public
startPush ( $section , $content ) : void
Start injecting content into a push section.
Parameters
- $section string
- $content string
public
stopPush ( ) : string
Stop injecting content into a push section.
protected
extendPush ( $section , $content ) : void
Append content to a given push section.
Parameters
- $section string
- $content string
public
startPrepend ( $section , $content ) : void
Start prepending content into a push section.
Parameters
- $section string
- $content string
public
stopPrepend ( ) : string
Stop prepending content into a push section.
protected
extendPrepend ( $section , $content ) : void
Prepend content to a given stack.
Parameters
- $section string
- $content string
public
yieldPushContent ( $section , $default ) : string
Get the string contents of a push section.
Parameters
- $section string
- $default string
public
flushStacks ( ) : void
Flush all of the stacks.