You are here

protected static function CacheFragmentController::getTableName 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 229
Contains \Drupal\restful\RenderCache\Entity\CacheFragmentController.

Class

CacheFragmentController
Class CacheFragmentController.

Namespace

Drupal\restful\RenderCache\Entity

Code

protected static function getTableName() {
  if (static::$tableName) {
    return static::$tableName;
  }

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