You are here

public static function ChartsDefaultSettings::getLegacySettingsMappingKeys in Charts 8.4

Same name and namespace in other branches
  1. 5.0.x src/Settings/ChartsDefaultSettings.php \Drupal\charts\Settings\ChartsDefaultSettings::getLegacySettingsMappingKeys()

Gets legacy settings mapping keys.

Return value

array Legacy settings keys to newer ones mapping.

5 calls to ChartsDefaultSettings::getLegacySettingsMappingKeys()
ChartBase::getOptionsFromElementProperties in src/Plugin/chart/Library/ChartBase.php
Gets options properties.
ChartsDefaultSettings::getDefaults in src/Settings/ChartsDefaultSettings.php
Gets defaults settings.
ChartsDefaultSettings::transformLegacySettingsToNew in src/Settings/ChartsDefaultSettings.php
Transforms legacy settings to newer ones.
ChartsDefaultSettingsTest::testDefaults in tests/src/Unit/Settings/ChartsDefaultSettingsTest.php
Tests getter and setter for defaults.
charts_blocks_update_8301 in modules/charts_blocks/charts_blocks.install
Move charts block settings in their own array tree under charts.

File

src/Settings/ChartsDefaultSettings.php, line 213

Class

ChartsDefaultSettings
The chart default settings instance.

Namespace

Drupal\charts\Settings

Code

public static function getLegacySettingsMappingKeys() {
  return [
    'library' => 'library',
    'chart_library' => 'library',
    'type' => 'type',
    'chart_type' => 'type',
    'grouping' => 'grouping',
    'title' => 'display_title',
    'title_position' => 'display_title_position',
    'data_labels' => 'display_data_labels',
    'data_markers' => 'display_data_markers',
    'legend' => 'display_legend',
    'legend_position' => 'display_legend_position',
    'background' => 'display_background',
    'three_dimensional' => 'display_three_dimensional',
    'polar' => 'display_polar',
    'series' => 'series',
    'data' => 'data',
    'color' => 'color',
    'data_series' => 'data_series',
    'series_label' => 'series_label',
    'categories' => 'categories',
    'field_colors' => 'fields_data_providers',
    'tooltips' => 'display_tooltips',
    'tooltips_use_html' => 'display_tooltips_use_html',
    'width' => 'display_dimensions_width',
    'height' => 'display_dimensions_height',
    'width_units' => 'display_dimensions_width_units',
    'height_units' => 'display_dimensions_height_units',
    'xaxis_title' => 'xaxis_title',
    'xaxis_labels_rotation' => 'xaxis_labels_rotation',
    'yaxis_title' => 'yaxis_title',
    'yaxis_min' => 'yaxis_min',
    'yaxis_max' => 'yaxis_max',
    'yaxis_prefix' => 'yaxis_prefix',
    'yaxis_suffix' => 'yaxis_suffix',
    'yaxis_decimal_count' => 'yaxis_decimal_count',
    'yaxis_labels_rotation' => 'yaxis_labels_rotation',
    'inherit_yaxis' => 'yaxis_inherit',
    'secondary_yaxis_title' => 'yaxis_secondary_title',
    'secondary_yaxis_min' => 'yaxis_secondary_min',
    'secondary_yaxis_max' => 'yaxis_secondary_min',
    'secondary_yaxis_prefix' => 'yaxis_secondary_prefix',
    'secondary_yaxis_suffix' => 'yaxis_secondary_suffix',
    'secondary_yaxis_decimal_count' => 'yaxis_secondary_decimal_count',
    'secondary_yaxis_labels_rotation' => 'yaxis_secondary_labels_rotation',
    'green_from' => 'display_gauge_green_from',
    'green_to' => 'display_gauge_green_to',
    'red_from' => 'display_gauge_red_from',
    'red_to' => 'display_gauge_red_to',
    'yellow_from' => 'display_gauge_yellow_from',
    'yellow_to' => 'display_gauge_yellow_to',
    'max' => 'display_gauge_max',
    'min' => 'display_gauge_min',
    'allow_advanced_rendering' => 'fields_allow_advanced_rendering',
    'label_field' => 'fields_label',
    'data_fields' => 'fields_data_providers',
  ];
}