You are here

public static function CacheDecoratedResource::serializeKeyValue in RESTful 7.2

Generates a serialized key value pair.

Parameters

string $key: The key

string $value: The value.

Return value

string The serialized value.

Overrides CacheDecoratedResourceInterface::serializeKeyValue

4 calls to CacheDecoratedResource::serializeKeyValue()
DataProvider::getCacheFragments in src/Plugin/resource/DataProvider/DataProvider.php
Gets the entity context.
DataProviderDbQuery::getCacheFragments in src/Plugin/resource/DataProvider/DataProviderDbQuery.php
Gets the entity context.
DataProviderEntity::getCacheFragments in src/Plugin/resource/DataProvider/DataProviderEntity.php
Gets the entity context.
_restful_entity_cache_hashes in ./restful.entity.inc
Helper function that extract cache hashes from an entity.

File

src/Plugin/resource/Decorators/CacheDecoratedResource.php, line 321
Contains \Drupal\restful\Plugin\resource\Decorators\CacheDecoratedResource

Class

CacheDecoratedResource

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

public static function serializeKeyValue($key, $value) {
  return sprintf('%s%s%s', $key, static::CACHE_PAIR_SEPARATOR, $value);
}