class StyleService in Opigno training catalog 8
Same name and namespace in other branches
- 3.x src/StyleService.php \Drupal\opigno_catalog\StyleService
Class StyleService.
Hierarchy
- class \Drupal\opigno_catalog\StyleService
Expanded class hierarchy of StyleService
1 string reference to 'StyleService'
1 service uses StyleService
File
- src/
StyleService.php, line 8
Namespace
Drupal\opigno_catalogView source
class StyleService {
/**
* Constructs a new StyleService object.
*/
public function __construct() {
}
/**
* Returns style.
*/
public function getStyle() {
$tempstore = \Drupal::service('user.private_tempstore')
->get('opigno_catalog');
return $tempstore
->get('style');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StyleService:: |
public | function | Returns style. | |
StyleService:: |
public | function | Constructs a new StyleService object. |