You are here

public function PushController::__construct in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_push/src/PushController.php \Drupal\salesforce_push\PushController::__construct()
  2. 8.3 modules/salesforce_push/src/PushController.php \Drupal\salesforce_push\PushController::__construct()

PushController constructor.

Parameters

\Drupal\salesforce_push\PushQueue $pushQueue: Push queue service.

\Drupal\Core\Entity\EntityTypeManagerInterface $etm: Entity type manager service.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

modules/salesforce_push/src/PushController.php, line 41

Class

PushController
Push controller.

Namespace

Drupal\salesforce_push

Code

public function __construct(PushQueue $pushQueue, EntityTypeManagerInterface $etm) {
  $this->pushQueue = $pushQueue;
  $this->mappingStorage = $etm
    ->getStorage('salesforce_mapping');
}