public function LayoutParagraphsLayoutTempstoreRepository::getStorageKey in Layout Paragraphs 2.0.x
Returns a unique key for storing the layout.
Parameters
\Drupal\layout_paragraphs\LayoutParagraphsLayout $layout_paragraphs_layout: The layout object.
Return value
string The unique key.
3 calls to LayoutParagraphsLayoutTempstoreRepository::getStorageKey()
- LayoutParagraphsLayoutTempstoreRepository::delete in src/
LayoutParagraphsLayoutTempstoreRepository.php - Delete a layout from tempstore.
- LayoutParagraphsLayoutTempstoreRepository::get in src/
LayoutParagraphsLayoutTempstoreRepository.php - Get a layout paragraphs layout from the tempstore.
- LayoutParagraphsLayoutTempstoreRepository::set in src/
LayoutParagraphsLayoutTempstoreRepository.php - Save a layout paragraphs layout to the tempstore.
File
- src/
LayoutParagraphsLayoutTempstoreRepository.php, line 81
Class
- LayoutParagraphsLayoutTempstoreRepository
- Layout Paragraphs Layout Tempstore Repository class definition.
Namespace
Drupal\layout_paragraphsCode
public function getStorageKey(LayoutParagraphsLayout $layout_paragraphs_layout) {
return $layout_paragraphs_layout
->id();
}