You are here

public function LayoutTempstoreRepository::delete in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/LayoutTempstoreRepository.php \Drupal\layout_builder\LayoutTempstoreRepository::delete()

Removes the tempstore version of a section storage.

Parameters

\Drupal\layout_builder\SectionStorageInterface $section_storage: The section storage to remove from tempstore.

Overrides LayoutTempstoreRepositoryInterface::delete

File

core/modules/layout_builder/src/LayoutTempstoreRepository.php, line 66

Class

LayoutTempstoreRepository
Provides a mechanism for loading layouts from tempstore.

Namespace

Drupal\layout_builder

Code

public function delete(SectionStorageInterface $section_storage) {
  $key = $this
    ->getKey($section_storage);
  $this
    ->getTempstore($section_storage)
    ->delete($key);
}