This element is a container for rows, i.e., (block) elements arranged vertically.
$rowsElement = new Rows( [ ContentElementInterface[] $elements [, array $params ] ] );
or
$rowsElement = Rows::from( ContentElementInterface $data [, array $mapping [, array $params ] ] );
Property | Type | Description | Required |
---|---|---|---|
elements | ContentElementInterface[] | The child elements | - |
Get the child elements.
$elements = $rowsElement->getElements();
Parameters are optional settings for the presentation. All elements can have 'id' and 'class' parameters; other depend on environment and/or renderer.
Parameter | Type | Description |
---|---|---|
id | string | The ID of the element |
class | string | CSS class |
Get an associative array with all parameters.
$params = $rowsElement->getParameters();
Retrieve a single parameter. Default should be provided.
$id = $rowsElement->getParameter( 'id' [, $default ] );
$class = $rowsElement->getParameter( 'class' [, $default ] );