public static function EasychartHelper::addRenderLibraries in Easychart 8.3
Add libraries to render a chart.
Parameters
$element:
2 calls to EasychartHelper::addRenderLibraries()
- Easychart::build in src/
Plugin/ entity_embed/ EntityEmbedDisplay/ Easychart.php - Builds the renderable array for this Entity Embed display plugin.
- Easychart::viewElements in src/
Plugin/ Field/ FieldFormatter/ Easychart.php - Builds a renderable array for a field value.
File
- src/
EasychartHelper.php, line 53 - Contains \Drupal\easychart\EasychartHelper
Class
Namespace
Drupal\easychartCode
public static function addRenderLibraries(&$element) {
$element['#attached']['library'][] = 'easychart/easychart.render';
$element['#attached']['library'][] = 'easychart/lib.highcharts';
$element['#attached']['library'][] = 'easychart/lib.easycharts.render';
}