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

Breadcrumb

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

function Cache::get

Retrieves a single entry from the cache.

Parameters

string $key The key of the data to get. If NULL,: everything in the cache is returned.

Return value

mixed

2 calls to Cache::get()
LocalFile::process in vendor/squizlabs/php_codesniffer/src/Files/LocalFile.php
Processes the file.
Runner::run in vendor/squizlabs/php_codesniffer/src/Runner.php
Performs the run.

File

vendor/squizlabs/php_codesniffer/src/Util/Cache.php, line 308

Class

Cache

Namespace

PHP_CodeSniffer\Util

Code

public static function get($key = null) {
    if ($key === null) {
        return self::$cache;
    }
    if (isset(self::$cache[$key]) === true) {
        return self::$cache[$key];
    }
    return false;
}

API Navigation

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