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

Breadcrumb

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

function ContainerParametersResourceChecker::isFresh

File

vendor/symfony/dependency-injection/Config/ContainerParametersResourceChecker.php, line 33

Class

ContainerParametersResourceChecker
@author Maxime Steinhausser <maxime.steinhausser@gmail.com>

Namespace

Symfony\Component\DependencyInjection\Config

Code

public function isFresh(ResourceInterface $resource, int $timestamp) : bool {
    foreach ($resource->getParameters() as $key => $value) {
        if (!$this->container
            ->hasParameter($key) || $this->container
            ->getParameter($key) !== $value) {
            return false;
        }
    }
    return true;
}

API Navigation

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