public function ResultRow::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/ResultRow.php \Drupal\views\ResultRow::__construct()
Constructs a ResultRow object.
Parameters
array $values: (optional) An array of values to add as properties on the object.
File
- core/
modules/ views/ src/ ResultRow.php, line 37
Class
- ResultRow
- A class representing a view result row.
Namespace
Drupal\viewsCode
public function __construct(array $values = []) {
foreach ($values as $key => $value) {
$this->{$key} = $value;
}
}