You are here

ChartService.php in Charts 5.0.x

File

src/Services/ChartService.php
View source
<?php

namespace Drupal\charts\Services;


/**
 * Service class for getting and setting the currently selected library's state.
 *
 * @package Drupal\charts\Services
 */
class ChartService implements ChartServiceInterface {

  /**
   * The selected library.
   *
   * @var string
   */
  private $librarySelected;

  /**
   * {@inheritdoc}
   */
  public function getLibrarySelected() {
    return $this->librarySelected;
  }

  /**
   * {@inheritdoc}
   */
  public function setLibrarySelected($librarySelected = '') {
    $this->librarySelected = $librarySelected;
  }

}

Classes

Namesort descending Description
ChartService Service class for getting and setting the currently selected library's state.