public function WebformExporterBase::__construct in Webform 8.5
Constructs a WebformExporterBase object.
Parameters
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.
\Psr\Log\LoggerInterface $logger: A logger instance.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\webform\Plugin\WebformElementManagerInterface $element_manager: The webform element manager.
\Drupal\webform\WebformTokenManagerInterface $token_manager: The webform token manager.
Overrides PluginBase::__construct
1 call to WebformExporterBase::__construct()
- WebformEntityPrintWebformExporter::__construct in modules/
webform_entity_print/ src/ Plugin/ WebformExporter/ WebformEntityPrintWebformExporter.php - Constructs a WebformEntityPrintBaseWebformExporter object.
1 method overrides WebformExporterBase::__construct()
- WebformEntityPrintWebformExporter::__construct in modules/
webform_entity_print/ src/ Plugin/ WebformExporter/ WebformEntityPrintWebformExporter.php - Constructs a WebformEntityPrintBaseWebformExporter object.
File
- src/
Plugin/ WebformExporterBase.php, line 93
Class
- WebformExporterBase
- Provides a base class for a results exporter.
Namespace
Drupal\webform\PluginCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, WebformElementManagerInterface $element_manager, WebformTokenManagerInterface $token_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this
->setConfiguration($configuration);
$this->logger = $logger;
$this->configFactory = $config_factory;
$this->entityTypeManager = $entity_type_manager;
$this->entityStorage = $entity_type_manager
->getStorage('webform_submission');
$this->elementManager = $element_manager;
$this->tokenManager = $token_manager;
}