You are here

public function SettingsForm::__construct in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 src/Form/SettingsForm.php \Drupal\salesforce\Form\SettingsForm::__construct()
  2. 5.0.x src/Form/SettingsForm.php \Drupal\salesforce\Form\SettingsForm::__construct()

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\salesforce\Rest\RestClientInterface $salesforce_client: The factory for configuration objects.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 42

Class

SettingsForm
Creates authorization form for Salesforce.

Namespace

Drupal\salesforce\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, RestClientInterface $salesforce_client, EventDispatcherInterface $event_dispatcher) {
  parent::__construct($config_factory);
  $this->client = $salesforce_client;
  $this->eventDispatcher = $event_dispatcher;
}