LayoutTempstoreRepository
class LayoutTempstoreRepository implements LayoutTempstoreRepositoryInterface (View source)
Provides a mechanism for loading layouts from tempstore.
Properties
| protected SharedTempStoreFactory | $tempStoreFactory | The shared tempstore factory. |
Methods
get(SectionStorageInterface $section_storage)
Gets the tempstore version of a section storage, if it exists.
bool
has(SectionStorageInterface $section_storage)
Checks for the existence of a tempstore version of a section storage.
delete(SectionStorageInterface $section_storage)
Removes the tempstore version of a section storage.
string
Details
__construct(SharedTempStoreFactory $temp_store_factory)
LayoutTempstoreRepository constructor.
SectionStorageInterface
get(SectionStorageInterface $section_storage)
Gets the tempstore version of a section storage, if it exists.
bool
has(SectionStorageInterface $section_storage)
Checks for the existence of a tempstore version of a section storage.
set(SectionStorageInterface $section_storage)
Stores this section storage in tempstore.
delete(SectionStorageInterface $section_storage)
Removes the tempstore version of a section storage.
protected SharedTempStore
getTempstore(SectionStorageInterface $section_storage)
Gets the shared tempstore.
protected string
getKey(SectionStorageInterface $section_storage)
Gets the string to use as the tempstore key.