plugin

package
v0.0.0-...-0db2d21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	Name         string
	Class        string
	Author       string
	Link         string
	MinSwVersion string
	Subscribers  []Subscriber
	// contains filtered or unexported fields
}

Plugin stores the Shopware Plugin data

func NewPlugin

func NewPlugin() *Plugin

NewPlugin creates a new Plugin struct

func (*Plugin) Initialize

func (p *Plugin) Initialize()

Initialize initializes the plugin struct and add some important missing fields.

func (*Plugin) IsInitialized

func (p *Plugin) IsInitialized() bool

IsInitialized checks if a plugin is initialized

type Subscriber

type Subscriber struct {
	Path   string
	Name   string
	Events []string
}

Subscriber is a SW Plugin Subscriber

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL