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

Breadcrumb

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

function LazyGhostTrait::__clone

File

vendor/symfony/var-exporter/LazyGhostTrait.php, line 300

Class

LazyGhostTrait

Namespace

Symfony\Component\VarExporter

Code

public function __clone() : void {
    if ($state = $this->lazyObjectState ?? null) {
        $this->lazyObjectState = clone $state;
    }
    if ((Registry::$parentMethods[self::class] ??= Registry::getParentMethods(self::class))['clone']) {
        parent::__clone();
    }
}

API Navigation

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