You are here

public function ResultRow::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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 39

Class

ResultRow
A class representing a view result row.

Namespace

Drupal\views

Code

public function __construct(array $values = []) {
  foreach ($values as $key => $value) {
    $this->{$key} = $value;
  }
}