public function DynamicLayout::getRowClasses in Dynamic Layouts 8
Get the layout row classes, comma separated.
Parameters
int $row_id: The row number we need to get.
Overrides DynamicLayoutInterface::getRowClasses
File
- src/
Entity/ DynamicLayout.php, line 284
Class
- DynamicLayout
- Defines the DynamicLayout entity.
Namespace
Drupal\dynamic_layouts\EntityCode
public function getRowClasses($row_id) {
$row = $this
->getRowById($row_id);
// Convert to comma separated.
$row_classes = '';
if (is_array($row[Constants::CUSTOM_ROW_CLASSES])) {
$row_classes = implode(', ', $row[Constants::CUSTOM_ROW_CLASSES]);
}
return $row_classes;
}