You are here

StyleService.php in Opigno training catalog 8

Same filename and directory in other branches
  1. 3.x src/StyleService.php

File

src/StyleService.php
View source
<?php

namespace Drupal\opigno_catalog;


/**
 * Class StyleService.
 */
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');
  }

}

Classes

Namesort descending Description
StyleService Class StyleService.