public function LayoutParagraphsLayoutTempstoreRepository::getWithStorageKey in Layout Paragraphs 2.0.x
Get a layout paragraphs layout frome the tempstore using its storage key.
Parameters
string $key: The storage key.
Return value
\Drupal\layout_paragraphs\LayoutParagraphsLayout The layout.
1 call to LayoutParagraphsLayoutTempstoreRepository::getWithStorageKey()
- LayoutParagraphsLayoutTempstoreRepository::get in src/
LayoutParagraphsLayoutTempstoreRepository.php - Get a layout paragraphs layout from the tempstore.
File
- src/
LayoutParagraphsLayoutTempstoreRepository.php, line 51
Class
- LayoutParagraphsLayoutTempstoreRepository
- Layout Paragraphs Layout Tempstore Repository class definition.
Namespace
Drupal\layout_paragraphsCode
public function getWithStorageKey(string $key) {
return $this->tempStoreFactory
->get('layout_paragraphs')
->get($key);
}