class Illuminate / View / DynamicComponent
You are viewing an older version of the documentation. For the latest, please visit master documentation.

DynamicComponent

Extends

Properties

public

$component string

The name of the component.

Default: null
protected static

$compiler Illuminate\...\BladeTagCompiler

The component tag compiler instance.

Default: null
protected static

$componentClasses array

The cached component classes.

Default: []

Methods

public

__construct ( string $component ) : void

Create a new component instance.

Parameters

  • $component string
public

render ( ) : View |string

Get the view / contents that represent the component.

protected

compileProps ( array $bindings ) : string

Compile the @props directive for the component.

Parameters

  • $bindings array
protected

compileBindings ( array $bindings ) : string

Compile the bindings for the component.

Parameters

  • $bindings array
protected

compileSlots ( array $slots ) : string

Compile the slots for the component.

Parameters

  • $slots array
protected

classForComponent ( ) : string

Get the class for the current component.

protected

bindings ( string $class ) : array

Get the names of the variables that should be bound to the component.

Parameters

  • $class string
protected

compiler ( ) : ComponentTagCompiler

Get an instance of the Blade tag compiler.