You are here

public function PanelsDisplayVariant::getTempStoreId in Panels 8.4

Returns the ID to be used to store this in the tempstore.

Return value

string

File

src/Plugin/DisplayVariant/PanelsDisplayVariant.php, line 520

Class

PanelsDisplayVariant
Provides a display variant that simply contains blocks.

Namespace

Drupal\panels\Plugin\DisplayVariant

Code

public function getTempStoreId() {
  $id = [
    $this
      ->id(),
  ];
  foreach ($this
    ->getContexts() as $context) {
    if ($context instanceof AutomaticContext && $context
      ->isAutomatic()) {
      $id = array_merge($id, $context
        ->getCacheTags());
    }
  }
  return implode(':', $id);
}