You are here

class ChartTitle in Charts 8.3

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

Chart Title.

Hierarchy

  • class \Drupal\charts_highcharts\Settings\Highcharts\ChartTitle implements \Drupal\charts_highcharts\Settings\Highcharts\JsonSerializable

Expanded class hierarchy of ChartTitle

1 file declares its use of ChartTitle
Highcharts.php in modules/charts_highcharts/src/Plugin/chart/Highcharts.php

File

modules/charts_highcharts/src/Settings/Highcharts/ChartTitle.php, line 8

Namespace

Drupal\charts_highcharts\Settings\Highcharts
View source
class ChartTitle implements \JsonSerializable {
  private $text;
  private $y;
  private $verticalAlign;

  /**
   * Get Text.
   *
   * @return mixed
   *   Text.
   */
  public function getText() {
    return $this->text;
  }

  /**
   * Set Text.
   *
   * @param mixed $text
   *   Text.
   */
  public function setText($text) {
    $this->text = $text;
  }

  /**
   * Get VerticalOffset.
   *
   * @return integer
   *   VerticalOffset.
   */
  public function getVerticalOffset() {
    return $this->y;
  }

  /**
   * Set VerticalOffset.
   *
   * @param integer
   *   VerticalOffset.
   */
  public function setVerticalOffset($y) {
    $this->y = $y;
  }

  /**
   * Get Vertical Align.
   *
   * @return string
   *   Vertical Align.
   */
  public function getVerticalAlign() {
    return $this->verticalAlign;
  }

  /**
   * Set Vertical Align.
   *
   * @param string $verticalAlign
   *   Vertical Align.
   */
  public function setVerticalAlign($verticalAlign) {
    $this->verticalAlign = $verticalAlign;
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
ChartTitle::$text private property 2
ChartTitle::$verticalAlign private property
ChartTitle::$y private property
ChartTitle::getText public function Get Text. 2
ChartTitle::getVerticalAlign public function Get Vertical Align.
ChartTitle::getVerticalOffset public function Get VerticalOffset.
ChartTitle::jsonSerialize public function Json Serialize. 2
ChartTitle::setText public function Set Text. 2
ChartTitle::setVerticalAlign public function Set Vertical Align.
ChartTitle::setVerticalOffset public function Set VerticalOffset.