TwigTemplateChoice
extends AbstractChoice
in package
Table of Contents
Properties
- $cache : FilesystemAdapter
- Current file cache.
- $cacheKey : string
- Current cache key name.
- $context : mixed
- Current context.
- $data : array<string|int, mixed>
- Context data.
- $framework : ContaoFrameworkInterface
Methods
- __construct() : mixed
- getCachedChoices() : mixed
- getChoices() : mixed
- getContext() : mixed
- setContext() : mixed
- collect() : array<string|int, mixed>
Properties
$cache
Current file cache.
protected
FilesystemAdapter
$cache
= null
$cacheKey
Current cache key name.
protected
string
$cacheKey
$context
Current context.
protected
mixed
$context
$data
Context data.
protected
array<string|int, mixed>
$data
= []
$framework
protected
ContaoFrameworkInterface
$framework
Methods
__construct()
public
__construct(ContaoFrameworkInterface $framework) : mixed
Parameters
- $framework : ContaoFrameworkInterface
getCachedChoices()
public
getCachedChoices([mixed $context = [] ]) : mixed
Parameters
- $context : mixed = []
getChoices()
public
getChoices([mixed $context = [] ]) : mixed
Parameters
- $context : mixed = []
getContext()
public
getContext() : mixed
setContext()
public
setContext(mixed $context) : mixed
Parameters
- $context : mixed
collect()
protected
collect() : array<string|int, mixed>