You are here

class ChartService in Charts 8

Same name and namespace in other branches
  1. 8.4 src/Services/ChartService.php \Drupal\charts\Services\ChartService
  2. 8.3 src/Services/ChartService.php \Drupal\charts\Services\ChartService
  3. 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

Expanded class hierarchy of ChartService

1 string reference to 'ChartService'
charts.services.yml in ./charts.services.yml
charts.services.yml
1 service uses ChartService
charts.charts_service in ./charts.services.yml
Drupal\charts\Services\ChartService

File

src/Services/ChartService.php, line 14

Namespace

Drupal\charts\Services
View 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

Namesort descending Modifiers Type Description Overrides
ChartService::$librarySelected private property
ChartService::getLibrarySelected public function Gets the currently selected Library. Overrides ChartServiceInterface::getLibrarySelected
ChartService::setLibrarySelected public function Sets the previously set Library with the newly selected library value. Overrides ChartServiceInterface::setLibrarySelected