Elegant 6 API allows to add various options to a plugin. Options are kept in a file

PluginDir->config->form.json

form.json holds JSON array of plugin options. Each option in its turn is a specially formatted JSON array containing a set of parameters that determines various option aspects: how it looks on web page, what values it can accept, etc.
Plugin options then can be configured on per site basis. Go to “Admin”-> “Sites”-> “Some site”-> “Plugins” tab.

Example:

Virtual host configuring, img #01.1

This is the simplest configuration. Here we add only one plugin option which is an input field with label “Test field”.

Note: in order to access this option value from inside a plugin class, you can use the following construction (see plugin methods for more info):

$this->getSetting(‘field’);