public function WebformAnalysisChart::__construct in Webform Analysis 8
Construct.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: Entity.
array $components: Components.
string $chart_type: Chart Type.
File
- src/
WebformAnalysisChart.php, line 27
Class
- WebformAnalysisChart
- Webform Analysis Chart.
Namespace
Drupal\webform_analysisCode
public function __construct(EntityInterface $entity, array $components = [], $chart_type = '') {
$this->entity = $entity;
$this->components = $components;
$this->chartType = $chart_type;
}