You are here

class ResultRow in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/src/ResultRow.php \Drupal\views\ResultRow

A class representing a view result row.

Hierarchy

Expanded class hierarchy of ResultRow

64 files declare their use of ResultRow
Boolean.php in core/modules/views/src/Plugin/views/field/Boolean.php
Contains \Drupal\views\Plugin\views\field\Boolean.
BulkForm.php in core/modules/system/src/Plugin/views/field/BulkForm.php
Contains \Drupal\system\Plugin\views\field\BulkForm.
CachePluginBase.php in core/modules/views/src/Plugin/views/cache/CachePluginBase.php
Contains \Drupal\views\Plugin\views\cache\CachePluginBase.
ConfigurableLanguageRenderer.php in core/modules/views/src/Entity/Render/ConfigurableLanguageRenderer.php
Contains \Drupal\views\Entity\Render\ConfigurableLanguageRenderer.
ContactLink.php in core/modules/contact/src/Plugin/views/field/ContactLink.php
Contains \Drupal\contact\Plugin\views\field\ContactLink.

... See full list

File

core/modules/views/src/ResultRow.php, line 13
Contains \Drupal\views\ResultRow.

Namespace

Drupal\views
View source
class ResultRow {

  /**
   * The entity for this result.
   *
   * @var \Drupal\Core\Entity\EntityInterface
   */
  public $_entity = NULL;

  /**
   * An array of relationship entities.
   *
   * @var \Drupal\Core\Entity\EntityInterface[]
   */
  public $_relationship_entities = [];

  /**
   * An incremental number which represents the row in the entire result.
   *
   * @var integer
   */
  public $index;

  /**
   * Constructs a ResultRow object.
   *
   * @param array $values
   *   (optional) An array of values to add as properties on the object.
   */
  public function __construct(array $values = array()) {
    foreach ($values as $key => $value) {
      $this->{$key} = $value;
    }
  }

  /**
   * Resets the _entity and _relationship_entities properties.
   */
  public function resetEntityData() {
    $this->_entity = NULL;
    $this->_relationship_entities = [];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ResultRow::$index public property An incremental number which represents the row in the entire result.
ResultRow::$_entity public property The entity for this result.
ResultRow::$_relationship_entities public property An array of relationship entities.
ResultRow::resetEntityData public function Resets the _entity and _relationship_entities properties.
ResultRow::__construct public function Constructs a ResultRow object.