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

Breadcrumb

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

function ArgumentMetadataFactory::getPrettyName

1 call to ArgumentMetadataFactory::getPrettyName()
ArgumentMetadataFactory::createArgumentMetadata in vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php

File

vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php, line 58

Class

ArgumentMetadataFactory
Builds { @author Iltar van der Berg <kjarli@gmail.com>

Namespace

Symfony\Component\HttpKernel\ControllerMetadata

Code

private function getPrettyName(\ReflectionFunctionAbstract $r) : string {
    $name = $r->name;
    if ($r instanceof \ReflectionMethod) {
        return $r->class . '::' . $name;
    }
    if ($r->isAnonymous() || !($class = $r->getClosureCalledClass())) {
        return $name;
    }
    return $class->name . '::' . $name;
}

API Navigation

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