Learning Notice example module

Audience: basic PHP and Drupal site building; new module developers.
Tested with Drupal 11.4.12, PHP 8.5.7, Drush 13.8.0 with Drupal Code Generator 4.2.0, SQLite, and the core Stark theme.

Copy the learning_notice folder into web/modules/custom on a disposable Drupal 11 practice site. Enable learning_notice and rebuild discovery caches, then place Site notice through Structure > Block layout. See the private tutorial draft for explanations and exercises. The module uses only core Drupal APIs.

Checks completed: PHP syntax; Drupal and DrupalPractice PHPCS; native attribute discovery; default and submitted settings; independent saved placements; schema validation including blank-message rejection; literal text escaping; injected configuration read; bubbled site-config tag and permanent max-age; anonymous edit denial; new placement through the native block library; real browser required-field validation, form save/readback, cache invalidation after message and site-name changes without a cache rebuild, real Tab access, and a 320 CSS pixel fixture. Full configuration export/change/import/readback also passed.

No production or staging installation, content publication, recurring editor activation, or whole-site accessibility claim. Browser checks used Chromium 151.0.7922.34; no screen-reader or multi-browser acceptance was performed. The slogan extension is an exercise prompt and is not part of the supplied module.

Source package contains only this note and the three module files.

Generator workflow: run drush generate module for Learning Notice (learning_notice), package Learning, dependency drupal:block, decline optional files; narrow generated core compatibility to ^11; enable module; run drush generate plugin:block, explicitly choose learning_notice as plugin ID, configurable Yes, dependency injection Yes, config.factory, finish service list with an empty response, access callback No. The supplied class preserves the generated final class, readonly injected property, factory and return types; the completed notice settings, rendering, cache dependency and schema replace placeholders. Both generators and the completed module were exercised in a fresh disposable Drupal site.
