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

Breadcrumb

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

function ReflectionCaster::addAttributes

5 calls to ReflectionCaster::addAttributes()
ReflectionCaster::castClass in vendor/symfony/var-dumper/Caster/ReflectionCaster.php
ReflectionCaster::castClassConstant in vendor/symfony/var-dumper/Caster/ReflectionCaster.php
ReflectionCaster::castFunctionAbstract in vendor/symfony/var-dumper/Caster/ReflectionCaster.php
ReflectionCaster::castParameter in vendor/symfony/var-dumper/Caster/ReflectionCaster.php
ReflectionCaster::castProperty in vendor/symfony/var-dumper/Caster/ReflectionCaster.php

File

vendor/symfony/var-dumper/Caster/ReflectionCaster.php, line 440

Class

ReflectionCaster
Casts Reflector related classes to array representation.

Namespace

Symfony\Component\VarDumper\Caster

Code

private static function addAttributes(array &$a, \Reflector $c, string $prefix = Caster::PREFIX_VIRTUAL) : void {
    foreach ($c->getAttributes() as $n) {
        $a[$prefix . 'attributes'][] = $n;
    }
}

API Navigation

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