<?php namespace Drupal\example\Controller; use Drupal\Core\StringTranslation\StringTranslationTrait; final class ExamplePageController { use StringTranslationTrait; public function __invoke(): array { return [ '#markup' => $this->t('This page is powered by Drupal and Nix.'), ]; } }