You are here

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'
acquia_lift.routing.yml in ./acquia_lift.routing.yml
acquia_lift.routing.yml

File

src/Controller/TestController.php, line 21
Contains \Drupal\acquia_lift\Controller\TestController.

Class

TestController

Namespace

Drupal\acquia_lift\Controller

Code

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;
}