You are here

public function Crawler::setDefaultNamespacePrefix in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dom-crawler/Crawler.php \Symfony\Component\DomCrawler\Crawler::setDefaultNamespacePrefix()

Overloads a default namespace prefix to be used with XPath and CSS expressions.

Parameters

string $prefix:

File

vendor/symfony/dom-crawler/Crawler.php, line 758

Class

Crawler
Crawler eases navigation of a list of \DOMElement objects.

Namespace

Symfony\Component\DomCrawler

Code

public function setDefaultNamespacePrefix($prefix) {
  $this->defaultNamespacePrefix = $prefix;
}