ThisVariable is a read-only container for accessing {{ this }} in Twig

  • October\Contracts\Twig\CallsAnyMethod
  • ArrayAccess
  • Stringable

Public Properties

public array $config

config values for this instance

Show inherited public properties

Inherited Public Properties

Protected Properties

There are no protected properties in the class.

Show inherited protected properties

Inherited Protected Properties

Public Methods

public __call()

public __call(string $method, array $parameters): $this 

__call handles dynamic calls to the element instance to set config.

public __construct()

public __construct($config = []): void

public __toString()

public __toString(): string 

__toString as an exception handler.

public get()

public get(string $key, mixed $default = null): mixed 

get an attribute from the element instance, with closure support

public offsetExists()

public offsetExists(string $offset): bool 

offsetExists determines if the given offset exists.

public offsetGet()

public offsetGet(string $offset): mixed 

offsetGet gets the value for a given offset.

public offsetSet()

public offsetSet(string $offset, mixed $value): void 

offsetSet does nothing, read-only.

public offsetUnset()

public offsetUnset(string $offset): void 

offsetUnset does nothing, read-only.

Show inherited public methods

Inherited Public Methods

Protected Methods

Show inherited protected methods

Inherited Protected Methods