protected function Xml::openSourceUrl in Migrate Plus 8.2
Same name and namespace in other branches
- 8.5 src/Plugin/migrate_plus/data_parser/Xml.php \Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Xml::openSourceUrl()
- 8.3 src/Plugin/migrate_plus/data_parser/Xml.php \Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Xml::openSourceUrl()
- 8.4 src/Plugin/migrate_plus/data_parser/Xml.php \Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Xml::openSourceUrl()
Opens the specified URL.
Parameters
$url: URL to open.
Return value
bool TRUE if the URL was successfully opened, FALSE otherwise.
Overrides DataParserPluginBase::openSourceUrl
File
- src/
Plugin/ migrate_plus/ data_parser/ Xml.php, line 174
Class
- Xml
- Obtain XML data for migration using the XMLReader pull parser.
Namespace
Drupal\migrate_plus\Plugin\migrate_plus\data_parserCode
protected function openSourceUrl($url) {
// (Re)open the provided URL.
$this->reader
->close();
return $this->reader
->open($url, NULL, \LIBXML_NOWARNING);
}