PluginFormBase
abstract class PluginFormBase implements PluginFormInterface, PluginAwareInterface (View source)
Provides a base class for plugin forms.
Classes extending this can be in any namespace, but are commonly placed in the 'PluginForm' namespace, such as \Drupal\module_name\PluginForm\ClassName.
Properties
| protected PluginInspectionInterface | $plugin | The plugin this form is for. |
Methods
Details
setPlugin(PluginInspectionInterface $plugin)
Sets the plugin for this object.
validateConfigurationForm(array $form, FormStateInterface $form_state)
Form validation handler.