Namespace
Drupal\devel_test\Controller
File
-
tests/modules/devel_test/src/Controller/DevelTestController.php
View source
<?php
namespace Drupal\devel_test\Controller;
use Drupal\Core\Controller\ControllerBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
class DevelTestController extends ControllerBase {
public static function create(ContainerInterface $container) : static {
$instance = parent::create($container);
$instance->stringTranslation = $container->get('string_translation');
return $instance;
}
public function simplePage() : array {
return [
'#markup' => $this->t('Simple page'),
];
}
}
Classes