This element is a container for columns, i.e., (block) elements arranged horizontally.
$columnsElement = new Columns( [ ContentElementInterface[] $elements [, array $params ] ] );
or
$columnsElement = Columns::from( ContentElementInterface $data [, array $mapping [, array $params ] ] );
Property | Type | Description | Required |
---|---|---|---|
elements | ContentElementInterface[] | The child elements | - |
Get the child elements.
$elements = $columnsElement->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 = $columnsElement->getParameters();
Retrieve a single parameter. Default should be provided.
$id = $columnsElement->getParameter( 'id' [, $default ] );
$class = $columnsElement->getParameter( 'class' [, $default ] );