# Shopware Plugin Other

**Other features** include Shopware-specific utilities and editor integrations that don't fit into the main categories.

---

## Shopware Twig template usage integration

**Feature ID:** `PlatformTemplateUsage`  
**Feature Page:** [Shopware Twig template usage integration](https://espend.de/phpstorm/plugin/shopware#platform-template-usage)  

Connects Shopware's template inheritance tags with Symfony's expanded Twig template usage API, including embed, use, import, and from tags.

### Code Examples

```twig
# Supported template tags:
{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% sw_include '@Storefront/storefront/component/product/card/box.html.twig' %}
{% sw_embed '@Storefront/storefront/component/box.html.twig' %}{% end_sw_embed %}
{% sw_use '@Storefront/storefront/utilities/blocks.html.twig' %}
{% sw_import '@Storefront/storefront/utilities/macros.html.twig' as ui %}
{% sw_from '@Storefront/storefront/utilities/forms.html.twig' import form_field %}
```

---

## Administration slots for Vue validation

**Feature ID:** `ShopwareAdminVueSlotQueryScopeContributor`  
**Feature Page:** [Administration slots for Vue validation](https://espend.de/phpstorm/plugin/shopware#shopware-admin-vue-slot-query-scope-contributor)  

Exposes resolved Shopware Administration component slots as Vue Poly Symbols so valid extension slots are accepted by Vue slot validation while unknown names still stay visible.

### Code Examples

```html
# Valid Shopware Administration slots:
<sw-page>
    <template #search-bar>
        <sw-search-bar />
    </template>

    <template #smart-bar-actions>
        <sw-button variant="primary">Save</sw-button>
    </template>
</sw-page>
```

---

## App-script Twig variables

**Feature ID:** `ShopwareAppScriptTwigVariableCollector`  
**Feature Page:** [App-script Twig variables](https://espend.de/phpstorm/plugin/shopware#shopware-app-script-twig-variable-collector)  

Provides app-script Twig globals and hook context variables for scripts under `Resources/scripts`, including include files used by macros.

### Code Examples

```twig
# Executable hook script:
{% set products = services.repository.search('product', criteria) %}
{% if debug %}
    {{ hook.salesChannelId }}
{% endif %}
```

```twig
# Reusable include:
{% macro product_count(criteria) %}
    {{ services.repository.search('product', criteria).total }}
{% endmacro %}
```

---

## Administration component tag support

**Feature ID:** `PlatformAdminComponentProvider`  
**Feature Page:** [Administration component tag support](https://espend.de/phpstorm/plugin/shopware#platform-admin-component-provider)  

Registers Administration component tags for XML-aware template support so custom component tags resolve as known elements.

### Code Examples

```html
# Administration template:
<sw-card>
    <sw-text-field v-model:value="value" />
</sw-card>
```

---

