private function DynamicLayout::getRowById in Dynamic Layouts 8
10 calls to DynamicLayout::getRowById()
- DynamicLayout::addColumn in src/
Entity/ DynamicLayout.php  - Add a column to a row.
 - DynamicLayout::deleteColumn in src/
Entity/ DynamicLayout.php  - Delete a specific column from the layout.
 - 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.
 
File
- src/
Entity/ DynamicLayout.php, line 759  
Class
- DynamicLayout
 - Defines the DynamicLayout entity.
 
Namespace
Drupal\dynamic_layouts\EntityCode
private function getRowById($row_id) {
  $rows = $this
    ->getRows();
  $row_by_number = [];
  // Loop over the rows.
  foreach ($rows as $row) {
    if ($row[Constants::ROW_ID] === $row_id) {
      $row_by_number = $row;
    }
  }
  return $row_by_number;
}