You are here

TypeInterface.php in Charts 8.4

Same filename and directory in other branches
  1. 5.0.x src/Plugin/chart/Type/TypeInterface.php

File

src/Plugin/chart/Type/TypeInterface.php
View source
<?php

namespace Drupal\charts\Plugin\chart\Type;


/**
 * Defines an interface for Chart type plugins.
 */
interface TypeInterface {

  /**
   * Gets the chart type ID.
   *
   * @return string
   *   The chart type ID.
   */
  public function getId();

  /**
   * Gets the chart type label.
   *
   * @return string
   *   The chart type label.
   */
  public function getLabel();

  /**
   * Gets the chart type axis.
   *
   * @return string
   *   The chart type axis.
   */
  public function getAxis();

  /**
   * Gets whether the chart type axis is inverted.
   *
   * @return bool
   *   TRUE if the chart type axis is inverted, FALSE otherwise.
   */
  public function isAxisInverted();

  /**
   * Gets whether the chart type axis supports stacking.
   *
   * @return bool
   *   TRUE if the chart type axis supports stacking, FALSE otherwise.
   */
  public function supportStacking();

}

Interfaces

Namesort descending Description
TypeInterface Defines an interface for Chart type plugins.