You are here

public function AdminCommentForm::__construct in Commerce Core 8.2

Constructs a new LogCommentForm 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\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Session\AccountInterface $account: The current user.

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

\Drupal\commerce_log\LogTemplateManagerInterface $log_template_manager: The log template manager.

Overrides HandlerBase::__construct

File

modules/log/src/Plugin/views/area/AdminCommentForm.php, line 69

Class

AdminCommentForm
Defines a log comment form.

Namespace

Drupal\commerce_log\Plugin\views\area

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, AccountInterface $account, FormBuilderInterface $form_builder, LogTemplateManagerInterface $log_template_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->currentUser = $account;
  $this->formBuilder = $form_builder;
  $this->logTemplateManager = $log_template_manager;
}