3 namespace Drupal\Core\Plugin;
5 use Drupal\Component\Plugin\PluginInspectionInterface;
8 * Provides an interface for plugins which have forms.
10 * Plugin forms are embeddable forms referenced by the plugin annotation.
11 * Used by plugin types which have a larger number of plugin-specific forms.
13 interface PluginWithFormsInterface extends PluginInspectionInterface {
16 * Gets the form class for the given operation.
18 * @param string $operation
19 * The name of the operation.
22 * The form class if defined, NULL otherwise.
24 public function getFormClass($operation);
27 * Gets whether the plugin has a form class for the given operation.
29 * @param string $operation
30 * The name of the operation.
33 * TRUE if the plugin has a form class for the given operation.
35 public function hasFormClass($operation);