1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<?php namespace Drupal\startups\Controller; use Drupal\Core\Controller\ControllerBase; /** * Class startupsController. */ class startupsController extends ControllerBase { /** * Hello. * * @return string * Return Hello string. */ public function hello($name) { return [ '#type' => 'markup', '#markup' => $this->t('Implement method: hello with parameter(s): $name'), ]; } }