You are here

class ChartType in Charts 8.3

Same name in this branch
  1. 8.3 modules/charts_google/src/Settings/Google/ChartType.php \Drupal\charts_google\Settings\Google\ChartType
  2. 8.3 modules/charts_billboard/src/Settings/Billboard/ChartType.php \Drupal\charts_billboard\Settings\Billboard\ChartType
  3. 8.3 modules/charts_c3/src/Settings/CThree/ChartType.php \Drupal\charts_c3\Settings\CThree\ChartType
Same name and namespace in other branches
  1. 8 modules/charts_google/src/Settings/Google/ChartType.php \Drupal\charts_google\Settings\Google\ChartType

Chart Type.

Hierarchy

  • class \Drupal\charts_google\Settings\Google\ChartType implements \Drupal\charts_google\Settings\Google\JsonSerializable

Expanded class hierarchy of ChartType

1 file declares its use of ChartType
Google.php in modules/charts_google/src/Plugin/chart/Google.php

File

modules/charts_google/src/Settings/Google/ChartType.php, line 8

Namespace

Drupal\charts_google\Settings\Google
View source
class ChartType implements \JsonSerializable {
  private $type;

  /**
   * Get Chart Type.
   *
   * @return mixed
   *   Chart Type.
   */
  public function getChartType() {
    return $this->type;
  }

  /**
   * Chart Type.
   *
   * @param mixed $type
   *   Chart Type.
   */
  public function setChartType($type) {
    $ucType = ucfirst($type);
    $this->type = $ucType . 'Chart';
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
ChartType::$type private property
ChartType::getChartType public function Get Chart Type.
ChartType::jsonSerialize public function Json Serialize.
ChartType::setChartType public function Chart Type.