Skip to content

Document Twig block versioning in Shopware Toolbox - #2413

Open
Soner (shyim) wants to merge 1 commit into
mainfrom
docs/toolbox-twig-block-versioning
Open

Document Twig block versioning in Shopware Toolbox#2413
Soner (shyim) wants to merge 1 commit into
mainfrom
docs/toolbox-twig-block-versioning

Conversation

@shyim

@shyim Soner (shyim) commented Jul 30, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds a "Twig block versioning" section to the Shopware Toolbox page under "Current features".
  • Documents the {# shopware-block: <hash>@<version> #} comment format with an example, the four related inspections and their defaults, the two intentions, and the Inspect Code workflow to add versioning comments to a whole project.

Related links

Checklist

  • I reviewed affected links, code samples, and cross-references, including PageRef references where relevant.
  • I added or updated redirects in .gitbook.yaml if pages were moved, renamed, or deleted. (No pages moved.)
  • I updated .wordlist.txt (and sorted it) if spellcheck flags new legitimate terms. (No new terms; SHA and macOS are already listed.)
  • Any required dependent changes in downstream modules have already been merged and published. (Feature is released in the plugin.)
  • This pull request is ready for review.

Notes

Inspection display names, default states, and the comment format were verified against the plugin source (plugin.xml and TwigUtil on main), not only the blog post. Markdown lint (avtodev/markdown-lint with the repo config) passes for the changed file.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 30, 2026 14:50
@shopware-dev-docs-connector

shopware-dev-docs-connector Bot commented Jul 30, 2026

Copy link
Copy Markdown

Developer Docs healthcheck

Status: Completed with success.
Repository: shopware/docs
Commit: 417c5a0
Preview: https://developer-documentation-lm7ql0tip-shopware-frontends.vercel.app
Workflow run: #4643

@github-actions

Copy link
Copy Markdown
Contributor

📊 Documentation Impact Analyzer

Metric Result
Score 6
Recommendation ⚠️ Needs manual review
Categories Migration

Reasons

  • +2: Code examples
  • +4: Deprecation

This score is automatically generated based on documentation impact heuristics.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the Shopware Toolbox documentation to explain the Twig block versioning feature of the Shopware PHPStorm plugin, including the required comment format and how to apply it across a project.

Changes:

  • Added a “Twig block versioning” section explaining why the feature exists and how it works.
  • Documented the shopware-block comment format with an example.
  • Added documentation for related inspections, intentions, and the “Inspect Code” workflow to bulk-add versioning comments.
Comments suppressed due to low confidence (1)

guides/development/tooling/shopware-toolbox.md:59

  • Table cells contain multi-sentence text that ends with periods. The documentation guidelines recommend not ending table sentences/cells with punctuation. Rephrase these cells so they end without punctuation (and ideally keep each cell to a single sentence).
| The upstream block has changed | Yes | The recorded hash no longer matches the upstream block. Check that your override is still correct. |
| The upstream block has been removed | Yes | The block no longer exists upstream. Check that your override is still needed. |
| Twig block is deprecated | Yes | The upstream block is marked as deprecated and will be removed in a future version. |
| Shopware versioning block comment is missing | No | A block override has no versioning comment yet. |

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +52 to +55
#### Inspections

| Inspection | Enabled by default | Reported when |
|---|---|---|
@lasomethingsomething

Copy link
Copy Markdown
Contributor

Su (@sushmangupta) Micha Hobert (@Isengo1989) Heya, could one of you give this a quick look?

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