LibraryDiscoveryParser::isValidUri

protected LibraryDiscoveryParser::isValidUri($string)

Determines if the supplied string is a valid URI.

File

core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php, line 403

Class

LibraryDiscoveryParser
Parses library files to get extension data.

Namespace

Drupal\Core\Asset

Code

protected function isValidUri($string) {
  return count(explode('://', $string)) === 2;
}
doc_Drupal
2016-10-29 09:23:11
Comments
Leave a Comment

Please login to continue.