interface PluginWithFormsInterface implements PluginInspectionInterface (View source)

Provides an interface for plugins which have forms.

Plugin forms are embeddable forms referenced by the plugin annotation. Used by plugin types which have a larger number of plugin-specific forms.

Methods

string
getPluginId()

Gets the plugin_id of the plugin instance.

array
getPluginDefinition()

Gets the definition of the plugin implementation.

string|null
getFormClass(string $operation)

Gets the form class for the given operation.

bool
hasFormClass(string $operation)

Gets whether the plugin has a form class for the given operation.

Details

string getPluginId()

Gets the plugin_id of the plugin instance.

Return Value

string

The plugin_id of the plugin instance.

array getPluginDefinition()

Gets the definition of the plugin implementation.

Return Value

array

The plugin definition, as returned by the discovery object used by the plugin manager.

string|null getFormClass(string $operation)

Gets the form class for the given operation.

Parameters

string $operation

The name of the operation.

Return Value

string|null

The form class if defined, NULL otherwise.

bool hasFormClass(string $operation)

Gets whether the plugin has a form class for the given operation.

Parameters

string $operation

The name of the operation.

Return Value

bool

TRUE if the plugin has a form class for the given operation.