public static function WebformHandlerBase::create in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformHandlerBase.php \Drupal\webform\Plugin\WebformHandlerBase::create()
Creates an instance of the plugin.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the plugin.
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Return value
static Returns an instance of this plugin.
Overrides ContainerFactoryPluginInterface::create
7 methods override WebformHandlerBase::create()
- ActionWebformHandler::create in src/
Plugin/ WebformHandler/ ActionWebformHandler.php - Creates an instance of the plugin.
- DebugWebformHandler::create in src/
Plugin/ WebformHandler/ DebugWebformHandler.php - Creates an instance of the plugin.
- EmailWebformHandler::create in src/
Plugin/ WebformHandler/ EmailWebformHandler.php - Creates an instance of the plugin.
- ExampleWebformHandler::create in modules/
webform_example_handler/ src/ Plugin/ WebformHandler/ ExampleWebformHandler.php - Creates an instance of the plugin.
- OptionsLimitWebformHandler::create in modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php - Creates an instance of the plugin.
File
- src/
Plugin/ WebformHandlerBase.php, line 175
Class
- WebformHandlerBase
- Provides a base class for a webform handler.
Namespace
Drupal\webform\PluginCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container
->get('logger.factory'), $container
->get('config.factory'), $container
->get('entity_type.manager'), $container
->get('webform_submission.conditions_validator'));
}