You are here

private function Crawler::findNamespacePrefixes in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\DomCrawler

Code

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();
}