interface WebformOptionsLimitHandlerInterface in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_options_limit/src/Plugin/WebformOptionsLimitHandlerInterface.php \Drupal\webform_options_limit\Plugin\WebformOptionsLimitHandlerInterface
Defines the interface for webform options limit handlers.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Core\Plugin\ContainerFactoryPluginInterface; interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\webform\Plugin\WebformEntityInjectionInterface; interface \Drupal\webform\Plugin\WebformPluginSettingsInterface
- interface \Drupal\webform\Plugin\WebformHandlerInterface
- interface \Drupal\webform_options_limit\Plugin\WebformOptionsLimitHandlerInterface
- interface \Drupal\webform\Plugin\WebformHandlerInterface
Expanded class hierarchy of WebformOptionsLimitHandlerInterface
All classes that implement WebformOptionsLimitHandlerInterface
3 files declare their use of WebformOptionsLimitHandlerInterface
- OptionsLimitWebformHandler.php in modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php - WebformOptionsLimitAccess.php in modules/
webform_options_limit/ src/ Access/ WebformOptionsLimitAccess.php - WebformOptionsLimitController.php in modules/
webform_options_limit/ src/ Controller/ WebformOptionsLimitController.php
File
- modules/
webform_options_limit/ src/ Plugin/ WebformOptionsLimitHandlerInterface.php, line 11
Namespace
Drupal\webform_options_limit\PluginView source
interface WebformOptionsLimitHandlerInterface extends WebformHandlerInterface {
/**
* Default option value.
*/
const DEFAULT_LIMIT = '_default_';
/**
* Option limit single remaining.
*/
const LIMIT_STATUS_SINGLE = 'single';
/**
* Option limit multiple remaining.
*/
const LIMIT_STATUS_MULTIPLE = 'multiple';
/**
* Option limit none remaining.
*/
const LIMIT_STATUS_NONE = 'none';
/**
* Option limit unlimited.
*/
const LIMIT_STATUS_UNLIMITED = 'unlimited';
/**
* Option limit eror.
*/
const LIMIT_STATUS_ERROR = 'error';
/**
* Option limit action disable.
*/
const LIMIT_ACTION_DISABLE = 'disable';
/**
* Option limit action remove.
*/
const LIMIT_ACTION_REMOVE = 'remove';
/**
* Option limit action none.
*/
const LIMIT_ACTION_NONE = 'none';
/**
* Option message label.
*/
const MESSAGE_DISPLAY_LABEL = 'label';
/**
* Option message none.
*/
const MESSAGE_DISPLAY_DESCRIPTION = 'description';
/**
* Option message none.
*/
const MESSAGE_DISPLAY_NONE = 'none';
/**
* Set the webform source entity.
*
* Allows source entity to be injected for building the summary table.
*
* @param \Drupal\Core\Entity\EntityInterface|null $source_entity
* A source entity.
*
* @return $this
* This webform handler.
*/
public function setSourceEntity(EntityInterface $source_entity = NULL);
/**
* Get the webform source entity.
*
* @return \Drupal\Core\Entity\EntityInterface|null
* A source entity.
*/
public function getSourceEntity();
/**
* Build summary table.
*
* @return array
* A renderable containing the options limit summary table.
*/
public function buildSummaryTable();
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 14 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 15 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 15 |
ContainerFactoryPluginInterface:: |
public static | function | Creates an instance of the plugin. | 120 |
PluginFormInterface:: |
public | function | Form constructor. | 37 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
WebformEntityInjectionInterface:: |
public | function | Get the webform that this handler is attached to. | |
WebformEntityInjectionInterface:: |
public | function | Get the webform submission that this handler is handling. | |
WebformEntityInjectionInterface:: |
public | function | Reset webform and webform submission entity. | |
WebformEntityInjectionInterface:: |
public | function | Set webform and webform submission entity. | |
WebformEntityInjectionInterface:: |
public | function | Set the webform that this is handler is attached to. | |
WebformEntityInjectionInterface:: |
public | function | Set the webform submission that this handler is handling. | |
WebformHandlerInterface:: |
public | function | Controls entity operation access to webform submission. | 1 |
WebformHandlerInterface:: |
public | function | Controls entity operation access to webform submission element. | 1 |
WebformHandlerInterface:: |
public | function | Alter webform element. | 1 |
WebformHandlerInterface:: |
public | function | Alter webform submission webform elements. | 1 |
WebformHandlerInterface:: |
public | function | Alter webform submission form. | 1 |
WebformHandlerInterface:: |
public | function | Returns the webform handler cardinality settings. | 1 |
WebformHandlerInterface:: |
constant | Value indicating a single plugin instances are permitted. | ||
WebformHandlerInterface:: |
constant | Value indicating unlimited plugin instances are permitted. | ||
WebformHandlerInterface:: |
public | function | Check handler conditions against a webform submission. | 1 |
WebformHandlerInterface:: |
public | function | Confirm webform submission form. | 1 |
WebformHandlerInterface:: |
public | function | Acts on a element after it has been created. | 1 |
WebformHandlerInterface:: |
public | function | Acts on handler after it has been created and added to webform. | 1 |
WebformHandlerInterface:: |
public | function | Acts on a element after it has been deleted. | 1 |
WebformHandlerInterface:: |
public | function | Acts on handler after it has been removed. | 1 |
WebformHandlerInterface:: |
public | function | Returns the webform handler description. | 1 |
WebformHandlerInterface:: |
public | function | Disables the webform handler. | 1 |
WebformHandlerInterface:: |
public | function | Enables the webform handler. | 1 |
WebformHandlerInterface:: |
public | function | Returns the conditions the webform handler. | 1 |
WebformHandlerInterface:: |
public | function | Returns the unique ID representing the webform handler. | 1 |
WebformHandlerInterface:: |
public | function | Returns the label of the webform handler. | 1 |
WebformHandlerInterface:: |
public | function | Returns notes of the webform variant. | 1 |
WebformHandlerInterface:: |
public | function | Get configuration form's off-canvas width. | 1 |
WebformHandlerInterface:: |
public | function | Returns the status of the webform handler. | 1 |
WebformHandlerInterface:: |
public | function | Returns a render array summarizing the configuration of the webform handler. | 1 |
WebformHandlerInterface:: |
public | function | Returns the weight of the webform handler. | 1 |
WebformHandlerInterface:: |
public | function | Determine if the webform handler requires anonymous submission tracking. | 1 |
WebformHandlerInterface:: |
public | function | Determine if this handle is applicable to the webform. | 1 |
WebformHandlerInterface:: |
public | function | Returns the webform handler disabled indicator. | 1 |
WebformHandlerInterface:: |
public | function | Returns the webform handler enabled indicator. | 1 |
WebformHandlerInterface:: |
public | function | Checks if the handler is excluded via webform.settings. | 1 |
WebformHandlerInterface:: |
public | function | Returns the webform submission is optional indicator. | 1 |
WebformHandlerInterface:: |
public | function | Returns the webform submission is required indicator. | 1 |
WebformHandlerInterface:: |
public | function | Returns the webform handler label. | 1 |
WebformHandlerInterface:: |
public | function | Alter/override a webform submission webform settings. | 1 |
WebformHandlerInterface:: |
public | function | Acts on a webform submission after it is created. | 1 |
WebformHandlerInterface:: |
public | function | Acts on deleted a webform submission before the delete hook is invoked. | 1 |
WebformHandlerInterface:: |
public | function | Acts on loaded webform submission. | 1 |
WebformHandlerInterface:: |
public | function | Acts on webform submissions after they are purged. | 1 |
WebformHandlerInterface:: |
public | function | Acts on a saved webform submission before the insert or update hook is invoked. | 1 |
WebformHandlerInterface:: |
public | function | Changes the values of an entity before it is created. | 1 |
WebformHandlerInterface:: |
public | function | Acts on a webform submission before they are deleted and before hooks are invoked. | 1 |
WebformHandlerInterface:: |
public | function | Acts on an webform submission about to be shown on a webform submission form. | 1 |
WebformHandlerInterface:: |
public | function | Prepares variables for webform confirmation templates. | 1 |
WebformHandlerInterface:: |
public | function | Acts on webform submissions before they are purged. | 1 |
WebformHandlerInterface:: |
public | function | Acts on a webform submission before the presave hook is invoked. | 1 |
WebformHandlerInterface:: |
constant | Value indicating webform submissions are not processed (i.e. email or saved) by the handler. | ||
WebformHandlerInterface:: |
constant | Value indicating webform submissions are processed (i.e. email or saved) by the handler. | ||
WebformHandlerInterface:: |
public | function | Sets the conditions for this webform handler. | 1 |
WebformHandlerInterface:: |
public | function | Sets the id for this webform handler. | 1 |
WebformHandlerInterface:: |
public | function | Sets the label for this webform handler. | 1 |
WebformHandlerInterface:: |
public | function | Set notes for this webform variant. | 1 |
WebformHandlerInterface:: |
public | function | Sets the status for this webform handler. | 1 |
WebformHandlerInterface:: |
public | function | Sets the weight for this webform handler. | 1 |
WebformHandlerInterface:: |
constant | Value indicating webform submissions do not have to be stored in the database. | ||
WebformHandlerInterface:: |
constant | Value indicating webform submissions must be stored in the database. | ||
WebformHandlerInterface:: |
public | function | Submit webform submission form. | 1 |
WebformHandlerInterface:: |
public | function | Determine if webform handler supports conditions. | 1 |
WebformHandlerInterface:: |
public | function | Determine if webform handler supports tokens. | 1 |
WebformHandlerInterface:: |
public | function | Acts on a element after it has been updated. | 1 |
WebformHandlerInterface:: |
public | function | Acts on handler after it has been updated. | 1 |
WebformHandlerInterface:: |
public | function | Validate webform submission form. | 1 |
WebformOptionsLimitHandlerInterface:: |
public | function | Build summary table. | 1 |
WebformOptionsLimitHandlerInterface:: |
constant | Default option value. | ||
WebformOptionsLimitHandlerInterface:: |
public | function | Get the webform source entity. | 1 |
WebformOptionsLimitHandlerInterface:: |
constant | Option limit action disable. | ||
WebformOptionsLimitHandlerInterface:: |
constant | Option limit action none. | ||
WebformOptionsLimitHandlerInterface:: |
constant | Option limit action remove. | ||
WebformOptionsLimitHandlerInterface:: |
constant | Option limit eror. | ||
WebformOptionsLimitHandlerInterface:: |
constant | Option limit multiple remaining. | ||
WebformOptionsLimitHandlerInterface:: |
constant | Option limit none remaining. | ||
WebformOptionsLimitHandlerInterface:: |
constant | Option limit single remaining. | ||
WebformOptionsLimitHandlerInterface:: |
constant | Option limit unlimited. | ||
WebformOptionsLimitHandlerInterface:: |
constant | Option message none. | ||
WebformOptionsLimitHandlerInterface:: |
constant | Option message label. | ||
WebformOptionsLimitHandlerInterface:: |
constant | Option message none. | ||
WebformOptionsLimitHandlerInterface:: |
public | function | Set the webform source entity. | 1 |
WebformPluginSettingsInterface:: |
public | function | Returns the plugin setting for given key | |
WebformPluginSettingsInterface:: |
public | function | Returns the plugin's settings. | |
WebformPluginSettingsInterface:: |
public | function | Sets a plugin setting for a given key. | |
WebformPluginSettingsInterface:: |
public | function | Update a plugin's settings. |