public function DynamicLayout::getColumnWidthNumber in Dynamic Layouts 8
Set the column width number.
Parameters
int $row_id: The row number we need to set the classes on.
int $column_id: The column id we need to set the classes on.
Overrides DynamicLayoutInterface::getColumnWidthNumber
File
- src/
Entity/ DynamicLayout.php, line 328  
Class
- DynamicLayout
 - Defines the DynamicLayout entity.
 
Namespace
Drupal\dynamic_layouts\EntityCode
public function getColumnWidthNumber($row_id, $column_id) {
  $row = $this
    ->getRowById($row_id);
  $column = $this
    ->getColumnById($row, $column_id);
  $column_width_number = $column[Constants::COLUMN_WIDTH_NUMBER];
  if (isset($column[Constants::CUSTOM_COLUMN_WIDTH_NUMBER])) {
    $column_width_number = $column[Constants::CUSTOM_COLUMN_WIDTH_NUMBER];
  }
  return $column_width_number;
}