trait CompilesLayouts

Constants

protected LAST_SECTION_CONTEXT_KEY

The name of the last section started during the current compile pass.

Methods

string
compileExtends(string $expression)

Compile the extends statements into valid PHP.

string
compileExtendsFirst(string $expression)

Compile the extends-first statements into valid PHP.

string
compileSection(string $expression)

Compile the section statements into valid PHP.

string
compileParent()

Replace the @parent directive to a placeholder.

string
compileYield(string $expression)

Compile the yield statements into valid PHP.

string
compileShow()

Compile the show statements into valid PHP.

string
compileAppend()

Compile the append statements into valid PHP.

string
compileOverwrite()

Compile the overwrite statements into valid PHP.

string
compileStop()

Compile the stop statements into valid PHP.

string
compileEndsection()

Compile the end-section statements into valid PHP.

Details

at line 19
protected string compileExtends(string $expression)

Compile the extends statements into valid PHP.

Parameters

string $expression

Return Value

string

at line 33
protected string compileExtendsFirst(string $expression)

Compile the extends-first statements into valid PHP.

Parameters

string $expression

Return Value

string

at line 47
protected string compileSection(string $expression)

Compile the section statements into valid PHP.

Parameters

string $expression

Return Value

string

at line 57
protected string compileParent()

Replace the @parent directive to a placeholder.

Return Value

string

at line 68
protected string compileYield(string $expression)

Compile the yield statements into valid PHP.

Parameters

string $expression

Return Value

string

at line 76
protected string compileShow()

Compile the show statements into valid PHP.

Return Value

string

at line 84
protected string compileAppend()

Compile the append statements into valid PHP.

Return Value

string

at line 92
protected string compileOverwrite()

Compile the overwrite statements into valid PHP.

Return Value

string

at line 100
protected string compileStop()

Compile the stop statements into valid PHP.

Return Value

string

at line 108
protected string compileEndsection()

Compile the end-section statements into valid PHP.

Return Value

string