You are here

protected static function CacheFragmentController::getTableIdkey in RESTful 7.2

Gets the name of the table for the cache fragment entity.

Return value

string The name.

File

src/RenderCache/Entity/CacheFragmentController.php, line 245
Contains \Drupal\restful\RenderCache\Entity\CacheFragmentController.

Class

CacheFragmentController
Class CacheFragmentController.

Namespace

Drupal\restful\RenderCache\Entity

Code

protected static function getTableIdkey() {
  if (static::$tableIdKey) {
    return static::$tableIdKey;
  }

  // Get the hashes from the base table.
  $info = entity_get_info(static::ENTITY_TYPE);
  static::$tableIdKey = $info['entity keys']['id'];
  return static::$tableIdKey;
}