Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CachePluginBase.php

function 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 341

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),
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal