interface QuickFormInterface in farmOS 2.x
Interface for quick forms.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\farm_quick\Plugin\QuickForm\QuickFormInterface
Expanded class hierarchy of QuickFormInterface
All classes that implement QuickFormInterface
File
- modules/
core/ quick/ src/ Plugin/ QuickForm/ QuickFormInterface.php, line 12
Namespace
Drupal\farm_quick\Plugin\QuickFormView source
interface QuickFormInterface extends PluginInspectionInterface {
/**
* Returns the quick form ID.
*
* @return string
* The quick form ID.
*/
public function getId();
/**
* Returns the quick form label.
*
* @return string
* The quick form label.
*/
public function getLabel();
/**
* Returns the quick form description.
*
* @return string
* The quick form description.
*/
public function getDescription();
/**
* Returns the quick form help text.
*
* @return string
* The quick form help text.
*/
public function getHelpText();
/**
* Returns the list of access permissions for the quick form.
*
* @return string[]
* An array of permission strings.
*/
public function getPermissions();
/**
* Checks access for the quick form.
*
* @param \Drupal\Core\Session\AccountInterface $account
* Run access checks for this account.
*
* @return \Drupal\Core\Access\AccessResultInterface
* The access result.
*/
public function access(AccountInterface $account);
/**
* Form constructor.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*
* @return array
* The form structure.
*/
public function buildForm(array $form, FormStateInterface $form_state);
/**
* Form validation handler.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*/
public function validateForm(array &$form, FormStateInterface $form_state);
/**
* Form submission handler.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*/
public function submitForm(array &$form, FormStateInterface $form_state);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
QuickFormInterface:: |
public | function | Checks access for the quick form. | 1 |
QuickFormInterface:: |
public | function | Form constructor. | 1 |
QuickFormInterface:: |
public | function | Returns the quick form description. | 1 |
QuickFormInterface:: |
public | function | Returns the quick form help text. | 1 |
QuickFormInterface:: |
public | function | Returns the quick form ID. | 1 |
QuickFormInterface:: |
public | function | Returns the quick form label. | |
QuickFormInterface:: |
public | function | Returns the list of access permissions for the quick form. | 1 |
QuickFormInterface:: |
public | function | Form submission handler. | 1 |
QuickFormInterface:: |
public | function | Form validation handler. | 1 |