Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ResultRow.php

function 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 40

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;
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal