class ChartService in Charts 8.4
Same name and namespace in other branches
- 8 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 for getting and setting the currently selected library's state.
@package Drupal\charts\Services
Hierarchy
- class \Drupal\charts\Services\ChartService implements ChartServiceInterface
Expanded class hierarchy of ChartService
1 file declares its use of ChartService
- ChartServiceTest.php in tests/
src/ Unit/ Services/ ChartServiceTest.php
1 string reference to 'ChartService'
1 service uses ChartService
File
- src/
Services/ ChartService.php, line 10
Namespace
Drupal\charts\ServicesView source
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChartService:: |
private | property | The selected library. | |
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:: |