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

Breadcrumb

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

function Wizard::processClassesAndTraits

1 call to Wizard::processClassesAndTraits()
Wizard::updateLookupTable in vendor/sebastian/code-unit-reverse-lookup/src/Wizard.php

File

vendor/sebastian/code-unit-reverse-lookup/src/Wizard.php, line 60

Class

Wizard

Namespace

SebastianBergmann\CodeUnitReverseLookup

Code

private function processClassesAndTraits() : void {
    $classes = get_declared_classes();
    $traits = get_declared_traits();
    
    /* @noinspection PhpConditionAlreadyCheckedInspection */
    assert(is_array($traits));
    foreach (array_merge($classes, $traits) as $classOrTrait) {
        if (isset($this->processedClasses[$classOrTrait])) {
            continue;
        }
        foreach ((new ReflectionClass($classOrTrait))->getMethods() as $method) {
            $this->processFunctionOrMethod($method);
        }
        $this->processedClasses[$classOrTrait] = true;
    }
}

API Navigation

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