You are here

public function ConditionGroup::__clone in Entity API 8

Clones the contained conditions when the condition group is cloned.

File

src/QueryAccess/ConditionGroup.php, line 157

Class

ConditionGroup
Represents a group of query access conditions.

Namespace

Drupal\entity\QueryAccess

Code

public function __clone() {
  foreach ($this->conditions as $i => $condition) {
    $this->conditions[$i] = clone $condition;
  }
}