
| Current Path : /var/www/html/ift/web/core/lib/Drupal/Core/Plugin/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/core/lib/Drupal/Core/Plugin/PluginWithFormsInterface.php |
<?php
namespace Drupal\Core\Plugin;
use Drupal\Component\Plugin\PluginInspectionInterface;
/**
* 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.
*/
interface PluginWithFormsInterface extends PluginInspectionInterface {
/**
* Gets the form class for the given operation.
*
* @param string $operation
* The name of the operation.
*
* @return string|null
* The form class if defined, NULL otherwise.
*/
public function getFormClass($operation);
/**
* Gets whether the plugin has a form class for the given operation.
*
* @param string $operation
* The name of the operation.
*
* @return bool
* TRUE if the plugin has a form class for the given operation.
*/
public function hasFormClass($operation);
}