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

Breadcrumb

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

function ExecutionContext::generateCacheKey

@internal

File

vendor/symfony/validator/Context/ExecutionContext.php, line 260

Class

ExecutionContext
The context used and created by {@link ExecutionContextFactory}.

Namespace

Symfony\Component\Validator\Context

Code

public function generateCacheKey(object $object) : string {
    if (!isset($this->cachedObjectsRefs[$object])) {
        $this->cachedObjectsRefs[$object] = spl_object_hash($object);
    }
    return $this->cachedObjectsRefs[$object];
}

API Navigation

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