public function UserDashboardSectionStorage::getTempstoreKey in Dashboards with Layout Builder 2.0.x
Same name and namespace in other branches
- 8 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 118
Class
- UserDashboardSectionStorage
- Class DashboardSectionStorage.
Namespace
Drupal\dashboards\Plugin\SectionStorageCode
public function getTempstoreKey() {
return $this
->getDashboard()
->id() . '_' . $this->account
->id();
}