Commit e8bac815 authored by Mamadou Diao Diallo's avatar Mamadou Diao Diallo Committed by Diao Diallo
Browse files

Issue #3257300 by diaodiallo: Add schema so that view can be properly translated

parent 7366e633
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
views.style.charts_highcharts_drilldown:
  type: views_style
  label: 'Chart highcharts drilldown'
  mapping:
    chart_settings:
      type: charts_config
      label: 'Settings'
    fields_series_field:
      type: string
      label: 'Series Field'
    fields_drilldown_series_field:
      type: string
      label: 'Drilldown Field'
    fields_data_field:
      type: string
      label: 'Data Field'
    fields_operator:
      type: string
      label: 'Operator Field'
+14 −0
Original line number Diff line number Diff line
@@ -21,6 +21,20 @@ use Drupal\core\form\FormStateInterface;
 */
class ChartsDrilldownPluginStyleChart extends ChartsPluginStyleChart {

  /**
   * {@inheritdoc}
   */
  protected function defineOptions() {
    $options = parent::defineOptions();

    $options['fields_series_field'] = ['default' => ''];
    $options['fields_drilldown_series_field'] = ['default' => ''];
    $options['fields_data_field'] = ['default' => ''];
    $options['fields_operator'] = ['default' => ''];

    return $options;
  }

  /**
   * {@inheritdoc}
   */