You are here

public function TestController::start in Heartbeat 8

Start.

Return value

string

Throws

\InvalidArgumentException

\Drupal\Core\Database\IntegrityConstraintViolationException

\Drupal\Core\Database\DatabaseExceptionWrapper

\Drupal\Core\Database\InvalidQueryException Return Hello string.

1 string reference to 'TestController::start'
heartbeat.routing.yml in ./heartbeat.routing.yml
heartbeat.routing.yml

File

src/Controller/TestController.php, line 96

Class

TestController
Class TestController.

Namespace

Drupal\heartbeat\Controller

Code

public function start($arg) {
  $jigga = 'what';
  $stuff = file_get_contents('http://cointrx.com:6969/prices/latest');
  $decoded = \json_decode($stuff);
  return [
    '#type' => 'markup',
    '#markup' => $this
      ->t('jizzla'),
  ];
}