CompilesLayouts

trait CompilesLayouts (View source)

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

protected string compileExtends(string $expression)

Compile the extends statements into valid PHP.

Parameters

string $expression

Return Value

string

protected string compileSection(string $expression)

Compile the section statements into valid PHP.

Parameters

string $expression

Return Value

string

protected string compileParent()

Replace the @parent directive to a placeholder.

Return Value

string

protected string compileYield(string $expression)

Compile the yield statements into valid PHP.

Parameters

string $expression

Return Value

string

protected string compileShow()

Compile the show statements into valid PHP.

Return Value

string

protected string compileAppend()

Compile the append statements into valid PHP.

Return Value

string

protected string compileOverwrite()

Compile the overwrite statements into valid PHP.

Return Value

string

protected string compileStop()

Compile the stop statements into valid PHP.

Return Value

string

protected string compileEndsection()

Compile the end-section statements into valid PHP.

Return Value

string

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/7.x/Illuminate/View/Compilers/Concerns/CompilesLayouts.html