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

Breadcrumb

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

function Psr6CacheClearer::getPool

Throws

\InvalidArgumentException If the cache pool with the given name does not exist

File

vendor/symfony/http-kernel/CacheClearer/Psr6CacheClearer.php, line 39

Class

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

Namespace

Symfony\Component\HttpKernel\CacheClearer

Code

public function getPool(string $name) : CacheItemPoolInterface {
    if (!$this->hasPool($name)) {
        throw new \InvalidArgumentException(\sprintf('Cache pool not found: "%s".', $name));
    }
    return $this->pools[$name];
}

API Navigation

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