Changelog
phil/content-warnings-bundleAll notable changes to phil/content-warnings-bundle will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
0.1.0-alpha - 2026-11-11
Added
PhilContentWarningsBundle, extension aliasphil_content_warnings, with the keysbase_catalogue,catalogue_files,catalogue,default_display,fallback_localesandpreferences_store; the catalogue is built when the container is compiled, so a definition that breaks a rule stops the build.CatalogueFactory,CatalogueLabelsandWarningScreen, which build the catalogue, label it in the current locale and decide for the current reader.Contract\WarningPreferencesStore,SessionWarningPreferences, which never starts a session to read and gives the defaults for preferences it cannot read back,InMemoryWarningPreferences, reset between requests, andException\PreferencesNotSaved.ContentWarningsColumnType, the column typephil_content_warnings.ContentWarningsTypeandContentWarningsTransformer, which keep the severity and note of a warning kept and the warnings of themes the catalogue no longer has; the form theme@PhilContentWarnings/form/theme.html.twig, a fieldset per category;WarningPreferencesTypeandWarningPreferencesTransformer, which keep what the form does not list and the severity of a display kept.ContentWarningsExtension:content_warnings_decision,content_warning_label,content_warning_description,content_warning_category; the template@PhilContentWarnings/fold.html.twig.- The Stimulus controller
revealand the stylesheetassets/styles/content-warnings.css, its fade-in only withoutprefers-reduced-motion: reduce. - The labels and messages in English, French, Spanish, German, Italian and Portuguese, in
translations/. - The documentation in
doc/, one file per topic, indexed by the README. CONTRIBUTING.md,SECURITY.mdandCODE_OF_CONDUCT.md.