Move all files to test-driven-drupal/demo/drupal-london/

This commit is contained in:
Oliver Davies 2025-10-02 12:31:37 +01:00
parent 0db961b741
commit 695d8b0299
44 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace Drupal\example\Controller;
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
final class ExamplePageController {
use StringTranslationTrait;
public function __construct(
private LoggerChannelFactoryInterface $logger,
) {}
/**
* @return array<string,mixed>
*/
public function __invoke(): array {
$this->logger->get('example')->info('Example page viewed.');
return [
'#markup' => $this->t(
'This is an example page from the <a href="@url">Drupal Module Template</a>.',
['@url' => 'https://github.com/opdavies/drupal-module-template']
),
];
}
}