trait CompilesLayouts

Properties

protected string $lastSection

The name of the last section that was started.

Methods

string
compileExtends(string $expression)

Compile the extends 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 22
protected string compileExtends(string $expression)

Compile the extends statements into valid PHP.

Parameters

string $expression

Return Value

string

at line 39
protected string compileSection(string $expression)

Compile the section statements into valid PHP.

Parameters

string $expression

Return Value

string

at line 51
protected string compileParent()

Replace the @parent directive to a placeholder.

Return Value

string

at line 62
protected string compileYield(string $expression)

Compile the yield statements into valid PHP.

Parameters

string $expression

Return Value

string

at line 72
protected string compileShow()

Compile the show statements into valid PHP.

Return Value

string

at line 82
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 102
protected string compileStop()

Compile the stop statements into valid PHP.

Return Value

string

at line 112
protected string compileEndsection()

Compile the end-section statements into valid PHP.

Return Value

string