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

Breadcrumb

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

function LazyProxyTrait::isLazyObjectInitialized

Returns whether the object is initialized.

Parameters

bool $partial Whether partially initialized objects should be considered as initialized:

File

vendor/symfony/var-exporter/LazyProxyTrait.php, line 71

Class

LazyProxyTrait

Namespace

Symfony\Component\VarExporter

Code

public function isLazyObjectInitialized(bool $partial = false) : bool {
    return !isset($this->lazyObjectState) || isset($this->lazyObjectState->realInstance) || Registry::$noInitializerState === $this->lazyObjectState->initializer;
}

API Navigation

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