trait
Illuminate
/
View
/
Compilers
/
Concerns
/
CompilesEchos
You are viewing an older version of the documentation. For the latest, please visit master documentation.
CompilesEchos
Properties
protected
$echoHandlers array
Custom rendering callbacks for stringable objects.
Default: []
Methods
public
stringable ( $class , $handler ) : void
Add a handler to be executed before echoing a given class.
Parameters
- $class string|callable
- $handler callable|null
public
compileEchos ( $value ) : string
Compile Blade echos into valid PHP.
Parameters
- $value string
protected
getEchoMethods ( ) : array
Get the echo methods in the proper order for compilation.
protected
compileRawEchos ( $value ) : string
Compile the "raw" echo statements.
Parameters
- $value string
protected
compileRegularEchos ( $value ) : string
Compile the "regular" echo statements.
Parameters
- $value string
protected
compileEscapedEchos ( $value ) : string
Compile the escaped echo statements.
Parameters
- $value string
protected
addBladeCompilerVariable ( $result ) : string
Add an instance of the blade echo handler to the start of the compiled string.
Parameters
- $result string
protected
wrapInEchoHandler ( $value ) : string
Wrap the echoable value in an echo handler if applicable.
Parameters
- $value string
public
applyEchoHandler ( $value ) : string
Apply the echo handler for the value if it exists.
Parameters
- $value string