function LayoutTempstoreRepository::has
Checks for the existence of a tempstore version of a section storage.
Parameters
\Drupal\layout_builder\SectionStorageInterface $section_storage: The section storage to check for in tempstore.
Return value
bool TRUE if there is a tempstore version of this section storage.
Overrides LayoutTempstoreRepositoryInterface::has
File
- 
              core/modules/ layout_builder/ src/ LayoutTempstoreRepository.php, line 49 
Class
- LayoutTempstoreRepository
- Provides a mechanism for loading layouts from tempstore.
Namespace
Drupal\layout_builderCode
public function has(SectionStorageInterface $section_storage) {
  $key = $this->getKey($section_storage);
  $tempstore = $this->getTempstore($section_storage)
    ->get($key);
  return !empty($tempstore['section_storage']);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
