You are here

interface WebformAnalysisChartInterface in Webform Analysis 8

Webform Analysis Chart Interface.

Hierarchy

Expanded class hierarchy of WebformAnalysisChartInterface

All classes that implement WebformAnalysisChartInterface

File

src/WebformAnalysisChartInterface.php, line 8

Namespace

Drupal\webform_analysis
View source
interface WebformAnalysisChartInterface {

  /**
   * Build.
   *
   * @param array $build
   *   Build.
   */
  public function build(array &$build = []);

  /**
   * Build Components Data.
   *
   * @return array
   *   Renderable.
   */
  public function buildComponentsData();

  /**
   * Build Component Data.
   *
   * @param \Drupal\webform_analysis\WebformAnalysisInterface $analysis
   *   Analysis.
   * @param string $component
   *   Component.
   * @param string $id
   *   Id.
   *
   * @return array
   *   Renderable.
   */
  public function buildComponentData(WebformAnalysisInterface $analysis, $component = '', $id = '');

  /**
   * CreateComponentId.
   *
   * @param string $component
   *   Component name.
   *
   * @return string
   *   Component Id.
   */
  public function createComponentId($component);

  /**
   * Create Chart.
   *
   * @param string $id
   *   Id.
   *
   * @return array
   *   Renderable.
   */
  public function createChart($id);

  /**
   * Get Header.
   *
   * @return array
   *   Header.
   */
  public function getHeader();

  /**
   * Build Pie Chart.
   *
   * @param \Drupal\webform_analysis\WebformAnalysisInterface $analysis
   *   Analysis.
   * @param string $component
   *   Component.
   * @param array $header
   *   Header.
   *
   * @return array
   *   Pie Chart.
   */
  public function buildPieChart(WebformAnalysisInterface $analysis, $component = '', array $header = []);

  /**
   * Build Attached Settings.
   *
   * @param array $charts
   *   Charts.
   *
   * @return array
   *   Attached Settings.
   */
  public function buildAttachedSettings(array $charts = []);

}

Members

Namesort descending Modifiers Type Description Overrides
WebformAnalysisChartInterface::build public function Build. 1
WebformAnalysisChartInterface::buildAttachedSettings public function Build Attached Settings. 1
WebformAnalysisChartInterface::buildComponentData public function Build Component Data. 1
WebformAnalysisChartInterface::buildComponentsData public function Build Components Data. 1
WebformAnalysisChartInterface::buildPieChart public function Build Pie Chart. 1
WebformAnalysisChartInterface::createChart public function Create Chart. 1
WebformAnalysisChartInterface::createComponentId public function CreateComponentId. 1
WebformAnalysisChartInterface::getHeader public function Get Header. 1