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

Breadcrumb

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

function ReflectionCaster::addMap

8 calls to ReflectionCaster::addMap()
ReflectionCaster::addExtra in vendor/symfony/var-dumper/Caster/ReflectionCaster.php
ReflectionCaster::castAttribute in vendor/symfony/var-dumper/Caster/ReflectionCaster.php
ReflectionCaster::castClass in vendor/symfony/var-dumper/Caster/ReflectionCaster.php
ReflectionCaster::castExtension in vendor/symfony/var-dumper/Caster/ReflectionCaster.php
ReflectionCaster::castFunctionAbstract in vendor/symfony/var-dumper/Caster/ReflectionCaster.php

... See full list

File

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

Class

ReflectionCaster
Casts Reflector related classes to array representation.

Namespace

Symfony\Component\VarDumper\Caster

Code

private static function addMap(array &$a, object $c, array $map, string $prefix = Caster::PREFIX_VIRTUAL) : void {
    foreach ($map as $k => $m) {
        if ('isDisabled' === $k) {
            continue;
        }
        if (method_exists($c, $m) && false !== ($m = $c->{$m}()) && null !== $m) {
            $a[$prefix . $k] = $m instanceof \Reflector ? $m->name : $m;
        }
    }
}

API Navigation

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