Skip to content

docs: add ContentTypeStorageInterface usage example#104

Open
KristianH wants to merge 3 commits intostoryblok:1.xfrom
KristianH:1.x
Open

docs: add ContentTypeStorageInterface usage example#104
KristianH wants to merge 3 commits intostoryblok:1.xfrom
KristianH:1.x

Conversation

@KristianH
Copy link
Copy Markdown

Add documentation showing how to access the current ContentType on any route using ContentTypeStorageInterface. Includes a practical Twig extension example for rendering a global header with context-aware navigation and language switching.

Add documentation showing how to access the current ContentType on any route using ContentTypeStorageInterface. Includes a practical Twig extension example for rendering a global header with context-aware navigation and language switching.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@silasjoisten
Copy link
Copy Markdown
Collaborator

@edodusi maybe you find time to write blogpost on how to do a language switcher without an additional api request using the symfony bundle.

And maybe this is something for a cookbook?

@KristianH KristianH marked this pull request as ready for review February 9, 2026 08:36
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.57%. Comparing base (f376fdd) to head (c4ab100).

Additional details and impacted files
@@            Coverage Diff            @@
##                1.x     #104   +/-   ##
=========================================
  Coverage     94.57%   94.57%           
  Complexity      285      285           
=========================================
  Files            43       43           
  Lines          1069     1069           
=========================================
  Hits           1011     1011           
  Misses           58       58           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants