private function Crawler::findNamespacePrefixes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Crawler.php \Symfony\Component\DomCrawler\Crawler::findNamespacePrefixes()
Parameters
string $xpath:
Return value
array
1 call to Crawler::findNamespacePrefixes()
- Crawler::filterRelativeXPath in vendor/
symfony/ dom-crawler/ Crawler.php - Filters the list of nodes with an XPath expression.
File
- vendor/
symfony/ dom-crawler/ Crawler.php, line 994
Class
- Crawler
- Crawler eases navigation of a list of \DOMElement objects.
Namespace
Symfony\Component\DomCrawlerCode
private function findNamespacePrefixes($xpath) {
if (preg_match_all('/(?P<prefix>[a-z_][a-z_0-9\\-\\.]*+):[^"\\/:]/i', $xpath, $matches)) {
return array_unique($matches['prefix']);
}
return array();
}