You are here

public function ImageCaptionStorage::getCacheKey in Image Field Caption 8

Constructs the cache key.

Parameters

string $entity_type: The entity type, like 'node' or 'comment'.

int $entity_id: The entity id.

int $revision_id: The revision id.

string $language: The language key, like 'en' or 'fr'.

string $field_name: The field name of the image field, like 'field_image' or 'field_article_image'.

int $delta: The delta of the image field.

1 call to ImageCaptionStorage::getCacheKey()
ImageCaptionStorage::getCaption in src/ImageCaptionStorage.php
Get a caption from the database for the specified arguments.

File

src/ImageCaptionStorage.php, line 389
Contains \Drupal\image_field_caption\ImageCaptionStorage.

Class

ImageCaptionStorage
Storage controller class for image captions.

Namespace

Drupal\image_field_caption

Code

public function getCacheKey($entity_type, $entity_id, $revision_id, $language, $field_name, $delta) {
  return implode(":", [
    'caption',
    $entity_type,
    $entity_id,
    $revision_id,
    $language,
    $field_name,
    $delta,
  ]);
}