You are here

public function FormHelper::__construct in Simple XML sitemap 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/FormHelper.php \Drupal\simple_sitemap\Form\FormHelper::__construct()
  2. 4.x src/Form/FormHelper.php \Drupal\simple_sitemap\Form\FormHelper::__construct()

FormHelper constructor.

Parameters

\Drupal\simple_sitemap\Simplesitemap $generator:

\Drupal\simple_sitemap\EntityHelper $entityHelper:

\Drupal\Core\Session\AccountProxyInterface $current_user:

File

src/Form/FormHelper.php, line 93

Class

FormHelper
Class FormHelper @package Drupal\simple_sitemap\Form

Namespace

Drupal\simple_sitemap\Form

Code

public function __construct(Simplesitemap $generator, EntityHelper $entityHelper, AccountProxyInterface $current_user) {
  $this->generator = $generator;
  $this->entityHelper = $entityHelper;
  $this->currentUser = $current_user;
}