private function DynamicLayoutSettings::getCustomColumnClasses in Dynamic Layouts 8
2 calls to DynamicLayoutSettings::getCustomColumnClasses()
- DynamicLayoutSettings::getFrontendColumnClasses in src/
Entity/ DynamicLayoutSettings.php - Get the frontend column classes.
- DynamicLayoutSettings::getLastColumnNumber in src/
Entity/ DynamicLayoutSettings.php - Get the first column number for a specific frontend library.
File
- src/
Entity/ DynamicLayoutSettings.php, line 239
Class
- DynamicLayoutSettings
- Defines the DynamicLayoutSettings entity.
Namespace
Drupal\dynamic_layouts\EntityCode
private function getCustomColumnClasses($new_grid_column_count = '') {
$grid_column_count = $this
->getGridColumnCount();
if ($new_grid_column_count) {
$grid_column_count = $new_grid_column_count;
}
// Convert to integer.
$grid_column_count = intval($grid_column_count);
$column_classes = [];
for ($i = 1; $i <= $grid_column_count; $i++) {
$column_class = $i;
$column_classes[$column_class] = $column_class;
}
return $column_classes;
}