public function HighchartsHandler::__construct in Visualization API 8
Constructor for the Highcharts plugin.
File
- src/
Plugin/ visualization/ handler/ HighchartsHandler.php, line 32 - Drupal\visualization\Plugin\visualization\handler\HighchartsHandler.
Class
- HighchartsHandler
- Library plugin for Visualization implementing support for Highcharts.
Namespace
Drupal\visualization\Plugin\visualization\handlerCode
public function __construct() {
if (\Drupal::moduleHandler()
->moduleExists('libraries')) {
module_load_include('module', 'libraries', 'libraries');
$path = libraries_get_path('highcharts');
$this->available = $path ? TRUE : FALSE;
}
}