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

Breadcrumb

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

function FileCache::get

Overrides FileCacheInterface::get

File

core/lib/Drupal/Component/FileCache/FileCache.php, line 68

Class

FileCache
Allows to cache data based on file modification dates.

Namespace

Drupal\Component\FileCache

Code

public function get($filepath) {
    $filepaths = [
        $filepath,
    ];
    $cached = $this->getMultiple($filepaths);
    return $cached[$filepath] ?? NULL;
}

API Navigation

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