You are here

public function ChartsPluginDisplayChart::execute in Charts 5.0.x

Same name and namespace in other branches
  1. 8.4 src/Plugin/views/display/ChartsPluginDisplayChart.php \Drupal\charts\Plugin\views\display\ChartsPluginDisplayChart::execute()
  2. 8 src/Plugin/views/display/ChartsPluginDisplayChart.php \Drupal\charts\Plugin\views\display\ChartsPluginDisplayChart::execute()
  3. 8.3 src/Plugin/views/display/ChartsPluginDisplayChart.php \Drupal\charts\Plugin\views\display\ChartsPluginDisplayChart::execute()

Executes the view and returns data in the format required.

The base class cannot be executed.

Overrides Attachment::execute

File

src/Plugin/views/display/ChartsPluginDisplayChart.php, line 42

Class

ChartsPluginDisplayChart
Display plugin to attach multiple chart configurations to the same chart.

Namespace

Drupal\charts\Plugin\views\display

Code

public function execute() {
  return $this->view
    ->render($this->display['id']);
}