public function HealthCheckController::__construct in Health Check Url 8
Same name and namespace in other branches
- 8.3 src/Controller/HealthCheckController.php \Drupal\health_check_url\Controller\HealthCheckController::__construct()
- 8.2 src/Controller/HealthCheckController.php \Drupal\health_check_url\Controller\HealthCheckController::__construct()
Constructs a new HealthCheckController object.
File
- src/
Controller/ HealthCheckController.php, line 21
Class
- HealthCheckController
- Controller for route that returns health check url type.
Namespace
Drupal\health_check_url\ControllerCode
public function __construct() {
$config = $this
->config('health_check_url.settings');
$this->string = $config
->get('string') != "" ? $config
->get('string') : "Passed";
$this->type = $config
->get('type') != "" ? $config
->get('type') : "timestamp";
}