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

Breadcrumb

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

function Profiler::saveProfile

Saves a Profile.

File

vendor/symfony/http-kernel/Profiler/Profiler.php, line 88

Class

Profiler
Profiler.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function saveProfile(Profile $profile) : bool {
    // late collect
    foreach ($profile->getCollectors() as $collector) {
        if ($collector instanceof LateDataCollectorInterface) {
            $collector->lateCollect();
        }
    }
    if (!($ret = $this->storage
        ->write($profile)) && null !== $this->logger) {
        $this->logger
            ->warning('Unable to store the profiler information.', [
            'configured_storage' => $this->storage::class,
        ]);
    }
    return $ret;
}

API Navigation

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