You are here

public function QueryPath::tag in QueryPath 7.3

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

File

QueryPath/QueryPath.php, line 954

Class

QueryPath

Code

public function tag() {
  return $this
    ->size() > 0 ? $this
    ->getFirstMatch()->tagName : '';
}