You are here

interface FormWidgetManagerInterface in Typed Data API enhancements 8

Interface for the form widget manager.

Hierarchy

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\Widget
View 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

Namesort descending Modifiers Type Description Overrides
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 2
FormWidgetManagerInterface::createInstance public function Creates a form widget plugin instance. Overrides FactoryInterface::createInstance
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 4