You are here

public function QueryPath::insertBefore in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/QueryPath.php \QueryPath::insertBefore()
  2. 7.2 QueryPath/QueryPath.php \QueryPath::insertBefore()

File

QueryPath/QueryPath.php, line 700

Class

QueryPath

Code

public function insertBefore(QueryPath $dest) {
  foreach ($this->matches as $m) {
    $dest
      ->before($m);
  }
  return $this;
}