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

Breadcrumb

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

function DumpDataCollector::__sleep

@internal

Overrides DataCollector::__sleep

File

vendor/symfony/http-kernel/DataCollector/DumpDataCollector.php, line 149

Class

DumpDataCollector
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

public function __sleep() : array {
    if (!$this->dataCount) {
        $this->data = [];
    }
    if ($this->clonesCount !== $this->clonesIndex) {
        return [];
    }
    $this->data[] = $this->fileLinkFormat;
    $this->data[] = $this->charset;
    $this->dataCount = 0;
    $this->isCollected = true;
    return parent::__sleep();
}
RSS feed
Powered by Drupal