ChartService.php in Charts 8
Same filename and directory in other branches
Namespace
Drupal\charts\ServicesFile
src/Services/ChartService.phpView source
<?php
namespace Drupal\charts\Services;
/**
* Service class necessary for getting and setting the state of the currently
* selected Library.
*
* Class ChartService
*
* @package Drupal\charts\Services
*/
class ChartService implements ChartServiceInterface {
private $librarySelected;
/**
* Gets the currently selected Library.
*
* @return string $librarySelected.
*/
public function getLibrarySelected() {
return $this->librarySelected;
}
/**
* Sets the previously set Library with the newly selected library value.
*
* @param String $librarySelected .
*/
public function setLibrarySelected($librarySelected) {
$this->librarySelected = $librarySelected;
}
}
Classes
Name | Description |
---|---|
ChartService | Service class necessary for getting and setting the state of the currently selected Library. |