You are here

public function YamlFormElementBase::__construct in YAML Form 8

Constructs a Drupal\Component\Plugin\PluginBase 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.

\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\yamlform\YamlFormElementManagerInterface $element_manager: The form element manager.

\Drupal\yamlform\YamlFormTokenManagerInterface $token_manager: The token manager.

Overrides PluginBase::__construct

File

src/YamlFormElementBase.php, line 108

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

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, YamlFormElementManagerInterface $element_manager, YamlFormTokenManagerInterface $token_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;
}