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

Breadcrumb

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

function Profile::getCollector

Gets a Collector by name.

Throws

\InvalidArgumentException if the collector does not exist

File

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

Class

Profile
Profile.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function getCollector(string $name) : DataCollectorInterface {
    if (!isset($this->collectors[$name])) {
        throw new \InvalidArgumentException(\sprintf('Collector "%s" does not exist.', $name));
    }
    return $this->collectors[$name];
}

API Navigation

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