You are here

public function ChartService::setLibrarySelected in Charts 5.0.x

Same name and namespace in other branches
  1. 8.4 src/Services/ChartService.php \Drupal\charts\Services\ChartService::setLibrarySelected()
  2. 8 src/Services/ChartService.php \Drupal\charts\Services\ChartService::setLibrarySelected()
  3. 8.3 src/Services/ChartService.php \Drupal\charts\Services\ChartService::setLibrarySelected()

Sets the previously set Library with the newly selected library value.

Parameters

string $librarySelected: Library selected.

Overrides ChartServiceInterface::setLibrarySelected

File

src/Services/ChartService.php, line 29

Class

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

Namespace

Drupal\charts\Services

Code

public function setLibrarySelected($librarySelected = '') {
  $this->librarySelected = $librarySelected;
}