\Phile\Plugin\Phile\DemoPluginPlugin

the class name is allways Plugin the namespace starts with Phile\Plugin\ the vendor name in lowercase is the folder name under plugins directory the subfolder with lowerCamelCase is the plugin name

your namespace should be: Phile\Plugin\Mycompany\MyPluginName your plugin folder should be: plugins/mycompany/myPluginName/

Class Plugin

Summary

Methods
Properties
Constants
injectSettings()
__construct()
on()
No public properties found
No constants found
No protected methods found
$settings
N/A
No private methods found
No private properties found
N/A

Properties

$settings

$settings : array

Type

array — the plugin settings

Methods

injectSettings()

injectSettings(array $settings)

inject settings

Parameters

array $settings

__construct()

__construct()

the contructor

on()

on(string $eventKey, null $data) : mixed|void

event method

Parameters

string $eventKey
null $data

Returns

mixed|void