public function TestController::test in Acquia Lift Connector 8
Test connection controller.
Return value
array List of available segments.
Deprecated
This controller is to be removed as soon as we build an automatic connection checker in the admin settings form.
1 string reference to 'TestController::test'
File
- src/
Controller/ TestController.php, line 21 - Contains \Drupal\acquia_lift\Controller\TestController.
Class
Namespace
Drupal\acquia_lift\ControllerCode
public function test() {
$data_api = \Drupal::service('acquia_lift.service.api.data_api');
$segments = $data_api
->getSegments();
$build['segments'] = [
'#markup' => print_r($segments, TRUE),
];
return $build;
}