You are here

public function UserDashboardSectionStorage::getTempstoreKey in Dashboards with Layout Builder 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/SectionStorage/UserDashboardSectionStorage.php \Drupal\dashboards\Plugin\SectionStorage\UserDashboardSectionStorage::getTempstoreKey()

Gets a string suitable for use as a tempstore key.

Return value

string A string to be used as the key for a tempstore item.

Overrides SectionStorageBase::getTempstoreKey

File

src/Plugin/SectionStorage/UserDashboardSectionStorage.php, line 150

Class

UserDashboardSectionStorage
Class DashboardSectionStorage.

Namespace

Drupal\dashboards\Plugin\SectionStorage

Code

public function getTempstoreKey() {
  return $this
    ->getDashboard()
    ->id() . '_' . $this->account
    ->id();
}