protected function CustomXmlFileLoader::loadFile

Loads an XML file.

Parameters

string $file An XML file path:

Return value

\DOMDocument

Throws

\InvalidArgumentException When loading of XML file fails because of syntax errors or when the XML structure is not as expected by the scheme - see validate()

Overrides XmlFileLoader::loadFile

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Fixtures/CustomXmlFileLoader.php, line 22

Class

CustomXmlFileLoader
XmlFileLoader with schema validation turned off

Namespace

Symfony\Component\Routing\Tests\Fixtures

Code

protected function loadFile($file) {
  return XmlUtils::loadFile($file, function () {
    return true;
  });
}