private function DynamicLayout::getColumnById in Dynamic Layouts 8
6 calls to DynamicLayout::getColumnById()
- DynamicLayout::getColumnClasses in src/
Entity/ DynamicLayout.php - Get the layout column classes, comma separated.
- DynamicLayout::getColumnName in src/
Entity/ DynamicLayout.php - Get the layout column name.
- DynamicLayout::getColumnWidthNumber in src/
Entity/ DynamicLayout.php - Set the column width number.
- DynamicLayout::setColumnName in src/
Entity/ DynamicLayout.php - Set the layout column classes.
- DynamicLayout::setCustomColumnClasses in src/
Entity/ DynamicLayout.php - Set the layout column classes.
File
- src/
Entity/ DynamicLayout.php, line 776
Class
- DynamicLayout
- Defines the DynamicLayout entity.
Namespace
Drupal\dynamic_layouts\EntityCode
private function getColumnById($row, $column_id) {
$column_by_id = [];
// Loop over the row columns.
foreach ($row[Constants::COLUMNS] as $column) {
if ($column[Constants::COLUMN_ID] === $column_id) {
$column_by_id = $column;
}
}
return $column_by_id;
}