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

Breadcrumb

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

function Profile::setCollectors

Sets the Collectors associated with this profile.

Parameters

DataCollectorInterface[] $collectors:

File

vendor/symfony/http-kernel/Profiler/Profile.php, line 230

Class

Profile
Profile.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function setCollectors(array $collectors) : void {
    $this->collectors = [];
    foreach ($collectors as $collector) {
        $this->addCollector($collector);
    }
}

API Navigation

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