Type.php in Charts 8.4
File
src/Plugin/chart/Type/Type.php
View source
<?php
namespace Drupal\charts\Plugin\chart\Type;
use Drupal\Core\Plugin\PluginBase;
class Type extends PluginBase implements TypeInterface {
public function getId() {
return $this->pluginDefinition['id'];
}
public function getLabel() {
return $this->pluginDefinition['label'];
}
public function getAxis() {
return $this->pluginDefinition['axis'];
}
public function isAxisInverted() {
return $this->pluginDefinition['axis_inverted'] == TRUE;
}
public function supportStacking() {
return $this->pluginDefinition['stacking'] == TRUE;
}
}
Classes
Name |
Description |
Type |
Chart type class plugins. |