You are here

protected function LayoutBuilderRestrictionsByRegionHelperTrait::privateTempStoreFactory in Layout Builder Restrictions 8.2

Gets the private tempStore.

Return value

\Drupal\Core\TempStore\PrivateTempStoreFactory Creates a private temporary storage for a collection.

1 call to LayoutBuilderRestrictionsByRegionHelperTrait::privateTempStoreFactory()
LayoutBuilderRestrictionsByRegionHelperTrait::regionRestrictionStatus in modules/layout_builder_restrictions_by_region/src/Traits/LayoutBuilderRestrictionsByRegionHelperTrait.php
Checks if any restrictions are enabled for a given region.

File

modules/layout_builder_restrictions_by_region/src/Traits/LayoutBuilderRestrictionsByRegionHelperTrait.php, line 116

Class

LayoutBuilderRestrictionsByRegionHelperTrait
Methods to help Layout Builder Restrictions By Region plugin.

Namespace

Drupal\layout_builder_restrictions_by_region\Traits

Code

protected function privateTempStoreFactory() {
  return $this->privateTempStoreFactory ?? \Drupal::service('tempstore.private');
}