public function WebformElementBase::__construct in Webform 8.5
Constructs a WebformElementBase 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\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Render\ElementInfoManagerInterface $element_info: The element info manager.
\Drupal\webform\Plugin\WebformElementManagerInterface $element_manager: The webform element manager.
\Drupal\webform\WebformTokenManagerInterface $token_manager: The webform token manager.
\Drupal\webform\WebformLibrariesManagerInterface $libraries_manager: The webform libraries manager.
Overrides PluginBase::__construct
2 calls to WebformElementBase::__construct()
- WebformManagedFileBase::__construct in src/
Plugin/ WebformElement/ WebformManagedFileBase.php - WebformManagedFileBase constructor.
- WebformSignature::__construct in src/
Plugin/ WebformElement/ WebformSignature.php - Constructs a WebformElementBase object.
2 methods override WebformElementBase::__construct()
- WebformManagedFileBase::__construct in src/
Plugin/ WebformElement/ WebformManagedFileBase.php - WebformManagedFileBase constructor.
- WebformSignature::__construct in src/
Plugin/ WebformElement/ WebformSignature.php - Constructs a WebformElementBase object.
File
- src/
Plugin/ WebformElementBase.php, line 166
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, ConfigFactoryInterface $config_factory, AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, ElementInfoManagerInterface $element_info, WebformElementManagerInterface $element_manager, WebformTokenManagerInterface $token_manager, WebformLibrariesManagerInterface $libraries_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->logger = $logger;
$this->configFactory = $config_factory;
$this->currentUser = $current_user;
$this->entityTypeManager = $entity_type_manager;
$this->elementInfo = $element_info;
$this->elementManager = $element_manager;
$this->tokenManager = $token_manager;
$this->librariesManager = $libraries_manager;
$this->submissionStorage = $entity_type_manager
->getStorage('webform_submission');
}