interface FormWidgetManagerInterface in Typed Data API enhancements 8
Interface for the form widget manager.
Hierarchy
- interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
- interface \Drupal\typed_data\Widget\FormWidgetManagerInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
Expanded class hierarchy of FormWidgetManagerInterface
All classes that implement FormWidgetManagerInterface
See also
\Drupal\typed_data\Widget\FormWidgetInterface
File
- src/
Widget/ FormWidgetManagerInterface.php, line 12
Namespace
Drupal\typed_data\WidgetView source
interface FormWidgetManagerInterface extends PluginManagerInterface {
/**
* Creates a form widget plugin instance.
*
* @param string $plugin_id
* The ID of the plugin being instantiated; i.e., the filter machine name.
* @param array $configuration
* An array of configuration relevant to the plugin instance. As this plugin
* is not configurable, this is unused and should stay empty.
*
* @return \Drupal\typed_data\Widget\FormWidgetInterface
* A fully configured plugin instance.
*
* @throws \Drupal\Component\Plugin\Exception\PluginException
* If the instance cannot be created, such as if the ID is invalid.
*/
public function createInstance($plugin_id, array $configuration = []);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DiscoveryInterface:: |
public | function | Gets a specific plugin definition. | 4 |
DiscoveryInterface:: |
public | function | Gets the definition of all plugins for this type. | 3 |
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | 2 |
FormWidgetManagerInterface:: |
public | function |
Creates a form widget plugin instance. Overrides FactoryInterface:: |
|
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 4 |