You are here

public function StyleService::getStyle in Opigno training catalog 8

Same name and namespace in other branches
  1. 3.x src/StyleService.php \Drupal\opigno_catalog\StyleService::getStyle()

Returns style.

File

src/StyleService.php, line 19

Class

StyleService
Class StyleService.

Namespace

Drupal\opigno_catalog

Code

public function getStyle() {
  $tempstore = \Drupal::service('user.private_tempstore')
    ->get('opigno_catalog');
  return $tempstore
    ->get('style');
}