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

Breadcrumb

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

function FilesystemLoader::isFresh

Overrides LoaderInterface::isFresh

File

vendor/twig/twig/src/Loader/FilesystemLoader.php, line 163

Class

FilesystemLoader
Loads template from the filesystem.

Namespace

Twig\Loader

Code

public function isFresh(string $name, int $time) : bool {
    // false support to be removed in 3.0
    if (null === ($path = $this->findTemplate($name))) {
        return false;
    }
    return filemtime($path) < $time;
}

API Navigation

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