Skip to content

support for Extract-Feature #80

@FalkoHilbert

Description

@FalkoHilbert

It would be nice when this Plugin has a Support for the PHPStorm Extract Feature to automatic creation of config-fields in config.xml if it is a Shopware 5.2 plugin structure.
Idea Example:

  1. Write some Plugin-Code with some string constants
  2. mark the string and click right mouse button
  3. under Refactor->Extract add entry to generate shopware-config-field
  4. add a xml-node in config.xml (if not exist create config.xml) with
        <element>
            <name>[STRING]</name>
            <label lang="de">[STRING]</label>
            <label>[STRING]</label>
        </element>

Additionally should the PHPStorm-Plugin have an Config-Parameter to define a prefix of plugins to force the prefixing of plugin-names and plugin-config fields.
Alternatively, one could also read the prefix for the config fields from the name of the plugin.
This idea could save time when refactoring plugin-code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions