You are here

public function LayoutParagraphsLayoutTempstoreRepository::delete in Layout Paragraphs 2.0.x

Delete a layout from tempstore.

File

src/LayoutParagraphsLayoutTempstoreRepository.php, line 67

Class

LayoutParagraphsLayoutTempstoreRepository
Layout Paragraphs Layout Tempstore Repository class definition.

Namespace

Drupal\layout_paragraphs

Code

public function delete(LayoutParagraphsLayout $layout_paragraphs_layout) {
  $key = $this
    ->getStorageKey($layout_paragraphs_layout);
  $this->tempStoreFactory
    ->get('layout_paragraphs')
    ->delete($key);
}