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

Breadcrumb

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

function Snapshot::snapshotConstants

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

File

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

Class

Snapshot
A snapshot of global state.

Namespace

SebastianBergmann\GlobalState

Code

private function snapshotConstants() : void {
    $constants = get_defined_constants(true);
    if (isset($constants['user'])) {
        $this->constants = $constants['user'];
    }
}
RSS feed
Powered by Drupal