CompilesComponents
trait CompilesComponents
Constants
| protected COMPONENT_HASH_STACK_CONTEXT_KEY |
The component name hash stack. |
Methods
Compile the component statements into valid PHP.
Get a new component hash for a component name.
Compile a class component opening.
Compile the end-component statements into valid PHP.
Compile the end-component statements into valid PHP.
No description
Compile the slot statements into valid PHP.
Compile the end-slot statements into valid PHP.
Compile the component-first statements into valid PHP.
Compile the end-component-first statements into valid PHP.
Compile the prop statement into valid PHP.
Compile the aware statement into valid PHP.
Sanitize the given component attribute value.
Details
at line 23
protected string
compileComponent(string $expression)
Compile the component statements into valid PHP.
at line 45
static string
newComponentHash(string $component)
Get a new component hash for a component name.
at line 61
static string
compileClassComponentOpening(string $component, string $alias, string $data, string $hash)
Compile a class component opening.
at line 76
protected string
compileEndComponent()
Compile the end-component statements into valid PHP.
at line 84
string
compileEndComponentClass()
Compile the end-component statements into valid PHP.
at line 101
protected string
popComponentHashStack()
No description
at line 115
protected string
compileSlot(string $expression)
Compile the slot statements into valid PHP.
at line 123
protected string
compileEndSlot()
Compile the end-slot statements into valid PHP.
at line 131
protected string
compileComponentFirst(string $expression)
Compile the component-first statements into valid PHP.
at line 139
protected string
compileEndComponentFirst()
Compile the end-component-first statements into valid PHP.
at line 147
protected string
compileProps(string $expression)
Compile the prop statement into valid PHP.
at line 183
protected string
compileAware(string $expression)
Compile the aware statement into valid PHP.
at line 194
static mixed
sanitizeComponentAttribute(mixed $value)
Sanitize the given component attribute value.