You are here

class ChartLegend in Charts 8.3

Same name in this branch
  1. 8.3 modules/charts_billboard/src/Settings/Billboard/ChartLegend.php \Drupal\charts_billboard\Settings\Billboard\ChartLegend
  2. 8.3 modules/charts_c3/src/Settings/CThree/ChartLegend.php \Drupal\charts_c3\Settings\CThree\ChartLegend
  3. 8.3 modules/charts_highcharts/src/Settings/Highcharts/ChartLegend.php \Drupal\charts_highcharts\Settings\Highcharts\ChartLegend

Chart Legend.

Hierarchy

  • class \Drupal\charts_billboard\Settings\Billboard\ChartLegend implements \Drupal\charts_billboard\Settings\Billboard\JsonSerializable

Expanded class hierarchy of ChartLegend

1 file declares its use of ChartLegend
Billboard.php in modules/charts_billboard/src/Plugin/chart/Billboard.php

File

modules/charts_billboard/src/Settings/Billboard/ChartLegend.php, line 8

Namespace

Drupal\charts_billboard\Settings\Billboard
View source
class ChartLegend implements \JsonSerializable {
  private $show;

  /**
   * Get Show.
   *
   * @return mixed
   *   Show.
   */
  public function getShow() {
    return $this->show;
  }

  /**
   * Set Show.
   *
   * @param mixed $show
   *   Show.
   */
  public function setShow($show) {
    $this->show = $show;
  }

  /**
   * Json Serialize.
   *
   * @return array
   *   Json Serialize.
   */
  public function jsonSerialize() {
    $vars = get_object_vars($this);
    return $vars;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ChartLegend::$show private property
ChartLegend::getShow public function Get Show.
ChartLegend::jsonSerialize public function Json Serialize.
ChartLegend::setShow public function Set Show.