class ChartService in Charts 8
Same name and namespace in other branches
- 8.4 src/Services/ChartService.php \Drupal\charts\Services\ChartService
- 8.3 src/Services/ChartService.php \Drupal\charts\Services\ChartService
- 5.0.x src/Services/ChartService.php \Drupal\charts\Services\ChartService
Service class necessary for getting and setting the state of the currently selected Library.
Class ChartService
@package Drupal\charts\Services
Hierarchy
- class \Drupal\charts\Services\ChartService implements ChartServiceInterface
Expanded class hierarchy of ChartService
1 string reference to 'ChartService'
1 service uses ChartService
File
- src/
Services/ ChartService.php, line 14
Namespace
Drupal\charts\ServicesView source
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChartService:: |
private | property | ||
ChartService:: |
public | function |
Gets the currently selected Library. Overrides ChartServiceInterface:: |
|
ChartService:: |
public | function |
Sets the previously set Library with the newly selected library value. Overrides ChartServiceInterface:: |