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

Breadcrumb

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

function DOMCaster::castElement

File

vendor/symfony/var-dumper/Caster/DOMCaster.php, line 239

Class

DOMCaster
Casts DOM related classes to array representation.

Namespace

Symfony\Component\VarDumper\Caster

Code

public static function castElement(\DOMElement|\Dom\Element $dom, array $a, Stub $stub, bool $isNested) : array {
    $a += [
        'tagName' => $dom->tagName,
    ];
    if ($dom instanceof \DOMElement) {
        $a += [
            'schemaTypeInfo' => $dom->schemaTypeInfo,
        ];
    }
    return $a;
}

API Navigation

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