You are here

public function QueryPath::insertBefore in QueryPath 7.2

Same name and namespace in other branches
  1. 6 QueryPath/QueryPath.php \QueryPath::insertBefore()
  2. 7.3 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;
}