# Shopware Plugin Linemarker

**Linemarkers** add gutter navigation markers for Shopware administration components, component slots, Smarty templates, PHP plugin classes, and ExtJS templates.

---

## Administration component usage linemarkers

**Feature ID:** `PlatformAdminComponentLineMarkerProvider`  
**Feature Page:** [Administration component usage linemarkers](https://espend.de/phpstorm/plugin/shopware#platform-admin-component-line-marker-provider)  

Shows related-target markers between Administration component usages and their definition, registry key, and resolved template targets.

### Code Examples

```javascript
# Component registration:
Shopware.Component.register('sw-page', () => import('src/app/component/structure/sw-page/index'));
```

---

## Administration component slot linemarkers

**Feature ID:** `PlatformAdminComponentSlotLineMarkerProvider`  
**Feature Page:** [Administration component slot linemarkers](https://espend.de/phpstorm/plugin/shopware#platform-admin-component-slot-line-marker-provider)  

Shows related-target markers for Administration extension slots, with goto navigation from slot attributes and the surrounding `<template>` tag.

### Code Examples

```twig
# Slot definition:
<div class="sw-page">
    <slot name="content"></slot>
    <slot name="smart-bar-actions"></slot>
</div>
```

```twig
# Slot usage with linemarker target:
<sw-page>
    <template #content>
        <sw-card>
            Page content
        </sw-card>
    </template>

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

---

