3e: Add page text

Replace the empty render array with one that returns the expected text.
This commit is contained in:
Oliver Davies 2020-03-19 21:00:51 +00:00
parent ef1e960f91
commit 9484d924a1

View file

@ -2,10 +2,16 @@
namespace Drupal\my_module\Controller;
use Drupal\Core\StringTranslation\StringTranslationTrait;
class BlogPageController {
use StringTranslationTrait;
public function __invoke(): array {
return [];
return [
'#markup' => $this->t('Welcome to my blog!'),
];
}
}