AccordionUtil
in package
Tags
Table of Contents
Properties
- $accordionSingleCache : array<string|int, mixed>
- Single cache.
- $accordionStartStopCache : array<string|int, mixed>
- Start/Stop cache.
- $framework : ContaoFramework
- $container : ContainerInterface
Methods
- __construct() : mixed
- structureAccordionSingle() : void
- Adds the following flags to the template data: - first - last - parentId.
- structureAccordionStartStop() : mixed
- Adds the following flags to the template data: - first - last - parentId.
Properties
$accordionSingleCache
Single cache.
protected
array<string|int, mixed>
$accordionSingleCache
= []
$accordionStartStopCache
Start/Stop cache.
protected
array<string|int, mixed>
$accordionStartStopCache
= []
$framework
protected
ContaoFramework
$framework
$container
private
ContainerInterface
$container
Methods
__construct()
public
__construct(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
structureAccordionSingle()
Adds the following flags to the template data: - first - last - parentId.
public
structureAccordionSingle(array<string|int, mixed> &$data[, string $prefix = 'accordion_' ]) : void
This is needed if your want to group multiple single accordion elements into an accordion wrapper like in bootstrap 4.
Parameters
- $data : array<string|int, mixed>
-
Data describing the accordion. Usually this is taken from \Contao\Template::getData().
- $prefix : string = 'accordion_'
-
The prefix for the flags
structureAccordionStartStop()
Adds the following flags to the template data: - first - last - parentId.
public
structureAccordionStartStop(array<string|int, mixed> &$data[, string $prefix = 'accordion_' ]) : mixed
Use Utils service instead
Parameters
- $data : array<string|int, mixed>
-
Data describing the accordion. Usually this is taken from \Contao\Template::getData().
- $prefix : string = 'accordion_'
-
The prefix for the flags