You are here

private function XmlFileLoader::isElementValueNull in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Loader/XmlFileLoader.php \Symfony\Component\Routing\Loader\XmlFileLoader::isElementValueNull()
1 call to XmlFileLoader::isElementValueNull()
XmlFileLoader::parseConfigs in vendor/symfony/routing/Loader/XmlFileLoader.php
Parses the config elements (default, requirement, option).

File

vendor/symfony/routing/Loader/XmlFileLoader.php, line 260

Class

XmlFileLoader
XmlFileLoader loads XML routing files.

Namespace

Symfony\Component\Routing\Loader

Code

private function isElementValueNull(\DOMElement $element) {
  $namespaceUri = 'http://www.w3.org/2001/XMLSchema-instance';
  if (!$element
    ->hasAttributeNS($namespaceUri, 'nil')) {
    return false;
  }
  return 'true' === $element
    ->getAttributeNS($namespaceUri, 'nil') || '1' === $element
    ->getAttributeNS($namespaceUri, 'nil');
}