function ResultRow::resetEntityData

Same name in other branches
  1. 9 core/modules/views/src/ResultRow.php \Drupal\views\ResultRow::resetEntityData()
  2. 8.9.x core/modules/views/src/ResultRow.php \Drupal\views\ResultRow::resetEntityData()
  3. 11.x core/modules/views/src/ResultRow.php \Drupal\views\ResultRow::resetEntityData()

Resets the _entity and _relationship_entities properties.

File

core/modules/views/src/ResultRow.php, line 49

Class

ResultRow
A class representing a view result row.

Namespace

Drupal\views

Code

public function resetEntityData() {
    $this->_entity = NULL;
    $this->_relationship_entities = [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.