public function ChartsConfigForm::charts_default_settings in Charts 8
2 calls to ChartsConfigForm::charts_default_settings()
- ChartsConfigForm::buildForm in src/
Form/ ChartsConfigForm.php - Form constructor.
- ChartsConfigForm::charts_settings_form in src/
Form/ ChartsConfigForm.php
File
- src/
Form/ ChartsConfigForm.php, line 86
Class
Namespace
Drupal\charts\FormCode
public function charts_default_settings() {
$defaults = array();
$defaults['type'] = 'pie';
$defaults['library'] = NULL;
$defaults['label_field'] = NULL;
$defaults['data_fields'] = NULL;
$defaults['field_colors'] = NULL;
$defaults['title'] = '';
$defaults['title_position'] = 'out';
$defaults['legend'] = TRUE;
$defaults['legend_position'] = 'right';
$defaults['colors'] = $this
->charts_default_colors();
$defaults['background'] = '';
$defaults['tooltips'] = TRUE;
$defaults['tooltips_use_html'] = FALSE;
$defaults['width'] = NULL;
$defaults['height'] = NULL;
$defaults['xaxis_title'] = '';
$defaults['xaxis_labels_rotation'] = 0;
$defaults['yaxis_title'] = '';
$defaults['yaxis_min'] = '';
$defaults['yaxis_max'] = '';
$defaults['yaxis_prefix'] = '';
$defaults['yaxis_suffix'] = '';
$defaults['yaxis_decimal_count'] = '';
$defaults['yaxis_labels_rotation'] = 0;
//\Drupal::moduleHandler()->alter('charts_default_settings', $defaults);
$this->moduleHandler
->alter('charts_default_settings', $defaults);
return $defaults;
}