CardGrid
Helper for card grid
- Full name:
\TwbsHelper\View\Helper\CardGrid - Parent class:
\TwbsHelper\View\Helper\AbstractGroupWithHelper
Properties
groupClass
protected static $groupClass
- This property is static.
groupTag
protected static $groupTag
- This property is static.
helperName
protected static string $helperName
- This property is static.
allowedOptions
protected static $allowedOptions
- This property is static.
Methods
renderGroupItem
protected renderGroupItem(mixed $itemKey, mixed $itemSpec, iterable $attributes, iterable $options, bool $escape): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$itemKey | mixed | |
$itemSpec | mixed | |
$attributes | iterable | |
$options | iterable | |
$escape | bool |
Inherited methods
__invoke
Render a group
public __invoke(iterable $items, iterable $optionsAndAttributes = [], bool $escape = true): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$items | iterable | Array with the elements of the group |
$optionsAndAttributes | iterable | Attributes for the group tag. |
$escape | bool | Escape the items. |
Return Value:
The group XHTML.
renderGroupContainer
protected renderGroupContainer(string $content, iterable $optionsAndAttributes, bool $escape): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$content | string | |
$optionsAndAttributes | iterable | |
$escape | bool |
prepareAttributes
protected prepareAttributes(iterable $optionsAndAttributes): \TwbsHelper\View\HtmlAttributesSet
Parameters:
| Parameter | Type | Description |
|---|---|---|
$optionsAndAttributes | iterable |
renderGroupItems
protected renderGroupItems(iterable $items, iterable $optionsAndAttributes, bool $escape = true): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$items | iterable | |
$optionsAndAttributes | iterable | |
$escape | bool |
renderGroupItem
protected renderGroupItem(mixed $itemKey, mixed $itemSpec, iterable $attributes, iterable $options, bool $escape): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$itemKey | mixed | |
$itemSpec | mixed | |
$attributes | iterable | |
$options | iterable | |
$escape | bool |
getItemViewHelper
protected getItemViewHelper(): \Laminas\View\Helper\HelperInterface
Throws:
if the view or plugin method is unavailable in the current context
LogicException