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'
File
- src/
Controller/ TestController.php, line 96
Class
- TestController
- Class TestController.
Namespace
Drupal\heartbeat\ControllerCode
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'),
];
}