public function ChartsApiExample::__construct in Charts 8.3
Same name and namespace in other branches
- 8.4 modules/charts_api_example/src/Controller/ChartsApiExample.php \Drupal\charts_api_example\Controller\ChartsApiExample::__construct()
- 5.0.x modules/charts_api_example/src/Controller/ChartsApiExample.php \Drupal\charts_api_example\Controller\ChartsApiExample::__construct()
Construct.
Parameters
\Drupal\charts\Services\ChartsSettingsServiceInterface $chartSettings:
\Drupal\Core\Messenger\MessengerInterface $messenger:
\Drupal\Component\Uuid\UuidInterface $uuidService:
File
- modules/
charts_api_example/ src/ Controller/ ChartsApiExample.php, line 44
Class
- ChartsApiExample
- Charts Api Example.
Namespace
Drupal\charts_api_example\ControllerCode
public function __construct(ChartsSettingsServiceInterface $chartSettings, MessengerInterface $messenger, UuidInterface $uuidService) {
$this->chartSettings = $chartSettings
->getChartsSettings();
$this->messenger = $messenger;
$this->uuidService = $uuidService;
}