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

Breadcrumb

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

function XmlResourceCaster::castXml

File

vendor/symfony/var-dumper/Caster/XmlResourceCaster.php, line 50

Class

XmlResourceCaster
Casts XML resources to array representation.

Namespace

Symfony\Component\VarDumper\Caster

Code

public static function castXml($h, array $a, Stub $stub, bool $isNested) : array {
    $a['current_byte_index'] = xml_get_current_byte_index($h);
    $a['current_column_number'] = xml_get_current_column_number($h);
    $a['current_line_number'] = xml_get_current_line_number($h);
    $a['error_code'] = xml_get_error_code($h);
    if (isset(self::XML_ERRORS[$a['error_code']])) {
        $a['error_code'] = new ConstStub(self::XML_ERRORS[$a['error_code']], $a['error_code']);
    }
    return $a;
}

API Navigation

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