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

Breadcrumb

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

function Snapshot::snapshotInterfaces

1 call to Snapshot::snapshotInterfaces()
Snapshot::__construct in vendor/sebastian/global-state/src/Snapshot.php

File

vendor/sebastian/global-state/src/Snapshot.php, line 187

Class

Snapshot
A snapshot of global state.

Namespace

SebastianBergmann\GlobalState

Code

private function snapshotInterfaces() : void {
    foreach (array_reverse(get_declared_interfaces()) as $interfaceName) {
        $class = new ReflectionClass($interfaceName);
        if (!$class->isUserDefined()) {
            break;
        }
        $this->interfaces[] = $interfaceName;
    }
    $this->interfaces = array_reverse($this->interfaces);
}
RSS feed
Powered by Drupal