Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. XmlFileLoader.php

function XmlFileLoader::isElementValueNull

3 calls to XmlFileLoader::isElementValueNull()
XmlFileLoader::parseConfigs in vendor/symfony/routing/Loader/XmlFileLoader.php
Parses the config elements (default, requirement, option).
XmlFileLoader::parseDefaultNode in vendor/symfony/routing/Loader/XmlFileLoader.php
Recursively parses the value of a "default" element.
XmlFileLoader::parseDefaultsConfig in vendor/symfony/routing/Loader/XmlFileLoader.php
Parses the "default" elements.

File

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

Class

XmlFileLoader
XmlFileLoader loads XML routing files.

Namespace

Symfony\Component\Routing\Loader

Code

private function isElementValueNull(\DOMElement $element) : bool {
    $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');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal