You are here

public function WebformManagedFileBase::__construct in Webform 8.5

WebformManagedFileBase constructor.

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.

\Drupal\Core\File\FileSystemInterface $file_system: The file system service.

\Drupal\file\FileUsage\FileUsageInterface|null $file_usage: The file usage service.

\Drupal\Component\Transliteration\TransliterationInterface $transliteration: The transliteration service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

Overrides WebformElementBase::__construct

File

src/Plugin/WebformElement/WebformManagedFileBase.php, line 119

Class

WebformManagedFileBase
Provides a base class webform 'managed_file' elements.

Namespace

Drupal\webform\Plugin\WebformElement

Code

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, FileSystemInterface $file_system, $file_usage, TransliterationInterface $transliteration, LanguageManagerInterface $language_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $logger, $config_factory, $current_user, $entity_type_manager, $element_info, $element_manager, $token_manager, $libraries_manager);
  $this->fileSystem = $file_system;
  $this->fileUsage = $file_usage;
  $this->transliteration = $transliteration;
  $this->languageManager = $language_manager;
}