function CachePluginBase::getRowCacheKeys
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::getRowCacheKeys()
- 10 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::getRowCacheKeys()
- 9 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::getRowCacheKeys()
- 8.9.x 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.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.
See also
https://www.drupal.org/node/3564958
File
-
core/
modules/ views/ src/ Plugin/ views/ cache/ CachePluginBase.php, line 346
Class
- CachePluginBase
- The base plugin to handle caching.
Namespace
Drupal\views\Plugin\views\cacheCode
public function getRowCacheKeys(ResultRow $row) {
@trigger_error(__METHOD__ . ' is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement. See https://www.drupal.org/node/3564958', E_USER_DEPRECATED);
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.