function CachePluginBase::getRowCacheKeys

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::getRowCacheKeys()
  2. 8.9.x core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::getRowCacheKeys()
  3. 10 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::getRowCacheKeys()

Returns the row cache keys.

Parameters

\Drupal\views\ResultRow $row: A result row.

Return value

string[] The row cache keys.

File

core/modules/views/src/Plugin/views/cache/CachePluginBase.php, line 338

Class

CachePluginBase
The base plugin to handle caching.

Namespace

Drupal\views\Plugin\views\cache

Code

public function getRowCacheKeys(ResultRow $row) {
    return [
        'views',
        'fields',
        $this->view
            ->id(),
        $this->view->current_display,
        $this->getRowId($row),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.